@@ -16,49 +16,54 @@ Widget chapterAppbarPlaceholder(BuildContext context) {
1616 offset: Offset (0 , 2 ),
1717 color: Colors .grey)
1818 ]),
19- child: Row (
20- mainAxisAlignment: MainAxisAlignment .spaceBetween,
21- children: [
22- Container (
23- height: ScreenUtil ().setHeight (110 ),
24- width: ScreenUtil ().setHeight (110 ),
25- color: Colors .transparent,
26- ),
27- ContentPlaceholder (
28- child: Column (
29- mainAxisAlignment: MainAxisAlignment .center,
30- crossAxisAlignment: CrossAxisAlignment .center,
31- children: [
32- ContentPlaceholder .block (
33- topSpacing: ScreenUtil ().setHeight (40 ),
34- height: ScreenUtil ().setHeight (40 ),
35- width: ScreenUtil ().setWidth (500 ),
19+ child: Padding (
20+ padding: EdgeInsets .symmetric (horizontal: ScreenUtil ().setWidth (30 )),
21+ child: Row (
22+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
23+ children: [
24+ Container (
25+ height: ScreenUtil ().setHeight (210 ),
26+ width: ScreenUtil ().setHeight (110 ),
27+ color: Colors .transparent,
28+ ),
29+ Flexible (
30+ child: ContentPlaceholder (
31+ spacing: EdgeInsets .zero,
32+ child: Column (
33+ mainAxisAlignment: MainAxisAlignment .center,
34+ children: [
35+ ContentPlaceholder .block (
36+ topSpacing: ScreenUtil ().setHeight (20 ),
37+ height: ScreenUtil ().setHeight (40 ),
38+ width: ScreenUtil ().setWidth (500 ),
39+ ),
40+ ContentPlaceholder .block (
41+ height: ScreenUtil ().setHeight (40 ),
42+ width: ScreenUtil ().setWidth (500 ),
43+ ),
44+ ],
3645 ),
37- ContentPlaceholder .block (
38- height: ScreenUtil ().setHeight (40 ),
39- width: ScreenUtil ().setWidth (300 ),
40- bottomSpacing: 0 ),
41- ],
46+ ),
4247 ),
43- ),
44- RoundButton (
45- icons : Icons .close ,
46- iconColor : Colors .white ,
47- backgroundColor : Theme . of (context).primaryColor ,
48- enableShadow : true ,
49- onTap : () => Navigator . pop (context))
50- ] ,
48+ RoundButton (
49+ icons : Icons .close,
50+ iconColor : Colors .white ,
51+ backgroundColor : Theme . of (context).primaryColor ,
52+ enableShadow : true ,
53+ onTap : () => Navigator . pop (context))
54+ ],
55+ ) ,
5156 )),
5257 );
5358}
5459
5560Widget chapterBodyPlaceholder () {
56- List count = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ] ;
61+ int count = 10 ;
5762
5863 return ListView .builder (
5964 shrinkWrap: true ,
6065 padding: EdgeInsets .zero,
61- itemCount: count.length ,
66+ itemCount: count,
6267 itemBuilder: (context, index) {
6368 return Center (child: CustomCircularProgressIndicator ());
6469 });
0 commit comments