FCard constructor

FCard({
  1. Widget? image,
  2. Widget? title,
  3. Widget? subtitle,
  4. Widget? child,
  5. MainAxisSize mainAxisSize = .min,
  6. FCardStyleDelta style = const .context(),
  7. Key? key,
})

Creates a FCard with a title, subtitle, and child.

The card's layout is as follows:

|---------------------------|
|  [image]                  |
|                           |
|  [title]                  |
|  [subtitle]               |
|                           |
|  [child]                  |
|---------------------------|

Implementation

FCard({
  Widget? image,
  Widget? title,
  Widget? subtitle,
  Widget? child,
  MainAxisSize mainAxisSize = .min,
  this.style = const .context(),
  super.key,
}) : child = Content(
       image: image,
       title: title,
       subtitle: subtitle,
       mainAxisSize: mainAxisSize,
       style: style,
       child: child,
     );