@@ -19,13 +19,13 @@ void main() => runApp(MyApp());
1919class MyApp extends StatelessWidget {
2020 @override
2121 Widget build (BuildContext context) => MaterialApp (
22- title: 'GetWidget Example' ,
23- theme: ThemeData (
24- primarySwatch: Colors .blue,
25- ),
26- debugShowCheckedModeBanner: false ,
27- home: const MyHomePage (title: 'GetWidget Example' ),
28- );
22+ title: 'GetWidget Example' ,
23+ theme: ThemeData (
24+ primarySwatch: Colors .blue,
25+ ),
26+ debugShowCheckedModeBanner: false ,
27+ home: const MyHomePage (title: 'GetWidget Example' ),
28+ );
2929}
3030
3131class MyHomePage extends StatefulWidget {
@@ -74,8 +74,7 @@ class _MyHomePageState extends State<MyHomePage>
7474 ];
7575
7676 @override
77- Widget build (BuildContext context) =>
78- Scaffold (
77+ Widget build (BuildContext context) => Scaffold (
7978 appBar: GFAppBar (
8079 backgroundColor: Colors .blueGrey,
8180 title: const Text ('UI Kit' ),
@@ -149,8 +148,7 @@ class _MyHomePageState extends State<MyHomePage>
149148// ],
150149// ),
151150
152-
153- SingleChildScrollView (
151+ SingleChildScrollView (
154152 child: Column (
155153 mainAxisAlignment: MainAxisAlignment .start,
156154 crossAxisAlignment: CrossAxisAlignment .center,
@@ -255,19 +253,17 @@ class _MyHomePageState extends State<MyHomePage>
255253 title: Text ('title' ),
256254 subTitle: Text ('subtitle' ),
257255 color: check ? GFColors .LIGHT : GFColors .DARK ,
258- onTap: (){
256+ onTap: () {
259257 setState (() {
260258 check = ! check;
261259 });
262260 },
263261 ),
264262
265-
266263 GFCheckbox (
267264 size: GFSize .SMALL ,
268265 activebgColor: GFColors .DANGER ,
269- onChanged:
270- (val) {
266+ onChanged: (val) {
271267 setState (() {
272268 check = val;
273269 });
@@ -286,9 +282,9 @@ class _MyHomePageState extends State<MyHomePage>
286282 value: check,
287283 type: GFCheckboxType .circle,
288284 checkColor: GFColors .DANGER ,
289- activebgColor: Colors .green,
290- inactivebgColor: Colors .white54,
291- activeBorderColor: Colors .red,
285+ activebgColor: Colors .green,
286+ inactivebgColor: Colors .white54,
287+ activeBorderColor: Colors .red,
292288 inactiveBorderColor: Colors .black12,
293289 inactiveIcon: Icon (Icons .check_box_outline_blank),
294290 activeIcon: Icon (Icons .check_box),
@@ -484,33 +480,35 @@ class _MyHomePageState extends State<MyHomePage>
484480 GFImageOverlay (
485481 height: 200.0 ,
486482 width: 200.0 ,
487- image: NetworkImage ("https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg" ),
483+ image: NetworkImage (
484+ "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg" ),
488485 boxFit: BoxFit .cover,
489486 colorFilter: new ColorFilter .mode (
490- Colors .black.withOpacity (0.5 ), BlendMode .darken,
487+ Colors .black.withOpacity (0.5 ),
488+ BlendMode .darken,
491489 ),
492490 shape: BoxShape .circle,
493491 ),
494492
495493 GFCard (
496- content:
497- GFImageOverlay (
498- height : 200 .0 ,
499- width : 304.0 ,
500- image : NetworkImage ( "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg" ),
501- boxFit: BoxFit .cover,
502- colorFilter: new ColorFilter .mode (
503- Colors .black.withOpacity (0.5 ), BlendMode .darken ,
504- ) ,
505- )
506- ),
494+ content: GFImageOverlay (
495+ height : 200.0 ,
496+ width : 304 .0 ,
497+ image : NetworkImage (
498+ "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg" ),
499+ boxFit: BoxFit .cover,
500+ colorFilter: new ColorFilter .mode (
501+ Colors .black.withOpacity (0.5 ),
502+ BlendMode .darken ,
503+ ),
504+ )) ,
507505
508506 RaisedButton (
509- onPressed: (){},
507+ onPressed: () {},
510508 child: Text ('hbjh' ),
511509 ),
512510 GFButton (
513- onPressed: (){},
511+ onPressed: () {},
514512 child: Text ('hbjh' ),
515513 ),
516514 GFButtonBar (
@@ -527,8 +525,7 @@ class _MyHomePageState extends State<MyHomePage>
527525 child: Text ("dszndc" ),
528526 icon: Icon (Icons .arrow_drop_down),
529527 ),
530- ]
531- ),
528+ ]),
532529
533530 GFButtonBadge (
534531 onPressed: null ,
@@ -620,7 +617,9 @@ class _MyHomePageState extends State<MyHomePage>
620617//
621618 GFIconButton (
622619 onPressed: null ,
623- icon: Icon (Icons .ac_unit,),
620+ icon: Icon (
621+ Icons .ac_unit,
622+ ),
624623// iconSize: 12.0,
625624 type: GFButtonType .solid,
626625// shape: GFButtonShape.pills,
@@ -639,7 +638,7 @@ class _MyHomePageState extends State<MyHomePage>
639638
640639 RaisedButton (
641640 child: Text ('goodiesMaterialButton button ' ),
642- onPressed: (){},
641+ onPressed: () {},
643642// color: Colors.blueGrey,
644643// hoverColor: Colors.blueGrey,
645644// focusColor: Colors.teal,
@@ -662,7 +661,7 @@ class _MyHomePageState extends State<MyHomePage>
662661 ),
663662 GFButton (
664663 color: Colors .teal,
665- onPressed: (){},
664+ onPressed: () {},
666665 child: Text ("share" ),
667666 icon: Icon (Icons .share),
668667 type: GFButtonType .outline,
@@ -680,7 +679,6 @@ class _MyHomePageState extends State<MyHomePage>
680679 ),
681680 ),
682681
683-
684682 GFIconButton (
685683 onPressed: () {},
686684 icon: Icon (Icons .ac_unit),
@@ -700,23 +698,17 @@ class _MyHomePageState extends State<MyHomePage>
700698// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
701699 ),
702700
703-
704701 RaisedButton (
705- onPressed: (){
706-
707- },
702+ onPressed: () {},
708703 child: Text ('fvb' ),
709704 ),
710705
711706 GFButton (
712- onPressed: (){
713-
714- },
707+ onPressed: () {},
715708 fullWidthButton: true ,
716709 child: Text ('fvb' ),
717710 ),
718711
719-
720712 GFButton (
721713 type: GFButtonType .outline,
722714 shape: GFButtonShape .pills,
0 commit comments