Panel constructor

const Panel({
  1. Key? key,
  2. required Widget child,
  3. Widget? title,
  4. Widget? action,
  5. EdgeInsetsGeometry padding = const EdgeInsets.all(12),
  6. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  7. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  8. Color? backgroundColor,
  9. double elevation = 0,
})

Implementation

const Panel({
  super.key,
  required this.child,
  this.title,
  this.action,
  this.padding = const EdgeInsets.all(12),
  this.margin = const EdgeInsets.all(0),
  this.borderRadius = BorderRadius.zero,
  this.backgroundColor,
  this.elevation = 0,
});