@@ -10,35 +10,36 @@ class GFCard extends StatelessWidget {
1010 ///
1111 /// The [elevation] must be null or non-negative. The [borderOnForeground]
1212 /// must not be null.
13- const GFCard (
14- { Key ? key,
15- this .color,
16- this .elevation,
17- this .shape,
18- this .borderOnForeground = true ,
19- this .padding = const EdgeInsets .symmetric (horizontal: 12 , vertical: 8 ),
20- this .margin,
21- this .clipBehavior,
22- this .semanticContainer,
23- this .title,
24- this .content,
25- this .image,
26- this .showImage = false ,
27- this .showOverlayImage = false ,
28- this .buttonBar,
29- this .imageOverlay,
30- this .titlePosition,
31- this .borderRadius,
32- this .border,
33- this .boxFit,
34- this .colorFilter,
35- this .height,
36- this .gradient})
37- : assert (elevation == null || elevation >= 0.0 ),
13+ const GFCard ({
14+ Key ? key,
15+ this .color,
16+ this .elevation,
17+ this .shape,
18+ this .borderOnForeground = true ,
19+ this .padding = const EdgeInsets .symmetric (horizontal: 12 , vertical: 8 ),
20+ this .margin,
21+ this .clipBehavior,
22+ this .semanticContainer,
23+ this .title,
24+ this .content,
25+ this .image,
26+ this .showImage = false ,
27+ this .showOverlayImage = false ,
28+ this .buttonBar,
29+ this .imageOverlay,
30+ this .titlePosition,
31+ this .borderRadius,
32+ this .border,
33+ this .boxFit,
34+ this .colorFilter,
35+ this .height,
36+ this .gradient,
37+ }) : assert (elevation == null || elevation >= 0.0 ),
3838 assert (
39- color == null || gradient == null ,
40- 'Cannot provide both a color and a decoration\n '
41- 'The color argument is just a shorthand for "decoration: new BoxDecoration(color: color)".' ),
39+ color == null || gradient == null ,
40+ 'Cannot provide both a color and a decoration\n '
41+ 'The color argument is just a shorthand for "decoration: new BoxDecoration(color: color)".' ,
42+ ),
4243 super (key: key);
4344
4445 /// defines the card's height
@@ -136,10 +137,7 @@ class GFCard extends StatelessWidget {
136137 ? Container (child: image)
137138 : Container ()
138139 : title ?? Container (),
139- Padding (
140- padding: padding,
141- child: content ?? Container (),
142- ),
140+ Padding (padding: padding, child: content ?? Container ()),
143141 buttonBar ?? Container (),
144142 ],
145143 ),
0 commit comments