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>
1195
1195
),
1196
1196
1197
1197
Checkbox (
1198
- value: check,
1199
- onChanged: null ,
1198
+ value: check,
1199
+ onChanged: null ,
1200
1200
// (val){
1201
1201
// print('on change val $val');
1202
1202
// }
1203
1203
),
1204
1204
1205
-
1206
-
1207
1205
GFCheckbox (
1208
1206
size: GFSize .SMALL ,
1209
1207
activebgColor: GFColors .DANGER ,
@@ -1432,7 +1430,6 @@ class _MyHomePageState extends State<MyHomePage>
1432
1430
1433
1431
//
1434
1432
1435
-
1436
1433
//
1437
1434
// GFCarousel(
1438
1435
//// initialPage: 1,
Original file line number Diff line number Diff line change @@ -83,18 +83,20 @@ class _GFCheckboxState extends State<GFCheckbox> {
83
83
84
84
@override
85
85
Widget build (BuildContext context) => FocusableActionDetector (
86
- enabled: enabled,
87
- child: InkWell (
86
+ enabled: enabled,
87
+ child: InkWell (
88
88
onTap: onStatusChange,
89
89
child: Container (
90
90
height: widget.size,
91
91
width: widget.size,
92
92
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,
98
100
borderRadius: widget.type == GFCheckboxType .basic
99
101
? BorderRadius .circular (3 )
100
102
: widget.type == GFCheckboxType .circle
@@ -128,5 +130,5 @@ class _GFCheckboxState extends State<GFCheckbox> {
128
130
: widget.inactiveIcon,
129
131
),
130
132
),
131
- );
133
+ );
132
134
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class GFListTile extends StatelessWidget {
79
79
subtitleText != null
80
80
? Text (
81
81
subtitleText,
82
- style: TextStyle (
82
+ style: const TextStyle (
83
83
fontSize: 14.5 ,
84
84
color: Colors .black54,
85
85
),
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class MySingleChoiceSearchState<T> extends State<GFSearchBar<T>> {
161
161
color: Theme .of (context).primaryColor,
162
162
),
163
163
),
164
- suffixIcon: Icon (Icons .search),
164
+ suffixIcon: const Icon (Icons .search),
165
165
border: InputBorder .none,
166
166
hintText: 'Search here...' ,
167
167
contentPadding: const EdgeInsets .only (
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class GFTypography extends StatelessWidget {
83
83
image: backgroundImage,
84
84
fit: BoxFit .cover,
85
85
colorFilter: backgroundImagecolorFilter ??
86
- ColorFilter .mode (Colors .black54, BlendMode .darken),
86
+ const ColorFilter .mode (Colors .black54, BlendMode .darken),
87
87
)
88
88
: null ,
89
89
),
You can’t perform that action at this time.
0 commit comments