Card
Material Design card for content containers.
File: example/lib/widgets/card.dart
Factory Methods
FBCard.basic()- Simple card containerFBCard.elevated()- Card with elevationFBCard.outlined()- Card with borderFBCard.filled()- Filled background card
Properties
child: Widget
elevation: double
margin: EdgeInsets
padding: EdgeInsets
color: Color
borderRadius: double
onTap: VoidCallback
shadow: Shadow
Usage Example
FBCard.elevated(
child: Padding(
padding: EdgeInsets.all(16),
child: Column(
children: [
Text('Card Title'),
Text('Card content goes here'),
],
),
),
)
Card with Image
FBCard.elevated(
child: Column(
children: [
Image.asset('assets/image.jpg'),
Padding(
padding: EdgeInsets.all(16),
child: Text('Description'),
),
],
),
)