GFCard constructor
const
GFCard({
- Key? key,
- Color? color,
- double? elevation,
- ShapeBorder? shape,
- bool borderOnForeground = true,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- EdgeInsetsGeometry? margin,
- Clip? clipBehavior,
- bool? semanticContainer,
- GFListTile? title,
- Widget? content,
- Image? image,
- bool showImage = false,
- bool showOverlayImage = false,
- GFButtonBar? buttonBar,
- ImageProvider<
Object> ? imageOverlay, - GFPosition? titlePosition,
- BorderRadiusGeometry? borderRadius,
- Border? border,
- BoxFit? boxFit,
- ColorFilter? colorFilter,
- double? height,
- LinearGradient? gradient,
Creates a material design card.
The elevation
must be null or non-negative. The borderOnForeground
must not be null.
Implementation
const GFCard(
{Key? key,
this.color,
this.elevation,
this.shape,
this.borderOnForeground = true,
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.margin,
this.clipBehavior,
this.semanticContainer,
this.title,
this.content,
this.image,
this.showImage = false,
this.showOverlayImage = false,
this.buttonBar,
this.imageOverlay,
this.titlePosition,
this.borderRadius,
this.border,
this.boxFit,
this.colorFilter,
this.height,
this.gradient})
: assert(elevation == null || elevation >= 0.0),
assert(
color == null || gradient == null,
'Cannot provide both a color and a decoration\n'
'The color argument is just a shorthand for "decoration: new BoxDecoration(color: color)".'),
super(key: key);