File tree Expand file tree Collapse file tree 5 files changed +15
-16
lines changed Expand file tree Collapse file tree 5 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -1195,15 +1195,13 @@ class _MyHomePageState extends State<MyHomePage>
11951195              ),
11961196
11971197              Checkbox (
1198-                    value:  check,
1199-                    onChanged:  null ,
1198+                 value:  check,
1199+                 onChanged:  null ,
12001200//                      (val){ 
12011201//                    print('on change val $val'); 
12021202//                  } 
12031203              ),
12041204
1205- 
1206- 
12071205              GFCheckbox (
12081206                size:  GFSize .SMALL ,
12091207                activebgColor:  GFColors .DANGER ,
@@ -1432,7 +1430,6 @@ class _MyHomePageState extends State<MyHomePage>
14321430
14331431// 
14341432
1435- 
14361433// 
14371434//              GFCarousel( 
14381435////              initialPage: 1, 
Original file line number Diff line number Diff line change @@ -83,18 +83,20 @@ class _GFCheckboxState extends State<GFCheckbox> {
8383
8484  @override 
8585  Widget  build (BuildContext  context) =>  FocusableActionDetector (
86-     enabled:  enabled,
87-     child:  InkWell (
86+          enabled:  enabled,
87+          child:  InkWell (
8888          onTap:  onStatusChange,
8989          child:  Container (
9090            height:  widget.size,
9191            width:  widget.size,
9292            decoration:  BoxDecoration (
93-                 color:  enabled ?  isSelected
94-                     ?  widget.type ==  GFCheckboxType .custom
95-                         ?  Colors .white
96-                         :  widget.activebgColor
97-                     :  widget.inactivebgColor :  Colors .grey,
93+                 color:  enabled
94+                     ?  isSelected
95+                         ?  widget.type ==  GFCheckboxType .custom
96+                             ?  Colors .white
97+                             :  widget.activebgColor
98+                         :  widget.inactivebgColor
99+                     :  Colors .grey,
98100                borderRadius:  widget.type ==  GFCheckboxType .basic
99101                    ?  BorderRadius .circular (3 )
100102                    :  widget.type ==  GFCheckboxType .circle
@@ -128,5 +130,5 @@ class _GFCheckboxState extends State<GFCheckbox> {
128130                :  widget.inactiveIcon,
129131          ),
130132        ),
131-   );
133+        );
132134}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class GFListTile extends StatelessWidget {
7979                    subtitleText !=  null 
8080                        ?  Text (
8181                            subtitleText,
82-                             style:  TextStyle (
82+                             style:  const   TextStyle (
8383                              fontSize:  14.5 ,
8484                              color:  Colors .black54,
8585                            ),
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class MySingleChoiceSearchState<T> extends State<GFSearchBar<T>> {
161161                    color:  Theme .of (context).primaryColor,
162162                  ),
163163                ),
164-                 suffixIcon:  Icon (Icons .search),
164+                 suffixIcon:  const   Icon (Icons .search),
165165                border:  InputBorder .none,
166166                hintText:  'Search here...' ,
167167                contentPadding:  const  EdgeInsets .only (
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class GFTypography extends StatelessWidget {
8383                image:  backgroundImage,
8484                fit:  BoxFit .cover,
8585                colorFilter:  backgroundImagecolorFilter ?? 
86-                     ColorFilter .mode (Colors .black54, BlendMode .darken),
86+                     const   ColorFilter .mode (Colors .black54, BlendMode .darken),
8787              )
8888            :  null ,
8989      ),
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments