FlutstrapCol constructor

const FlutstrapCol({
  1. Key? key,
  2. required Widget child,
  3. FSColSize size = const FSColSize(),
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. AlignmentGeometry? alignment,
  7. Color? color,
  8. Decoration? decoration,
  9. bool flexible = false,
})

Implementation

const FlutstrapCol({
  super.key,
  required this.child,
  this.size = const FSColSize(),
  this.padding,
  this.margin,
  this.alignment,
  this.color,
  this.decoration,
  this.flexible = false, // FIX: Default to non-flexible (uses Expanded)
}) : assert(color == null || decoration == null,
          'Cannot provide both color and decoration');