YaruBanner constructor

const YaruBanner({
  1. Key? key,
  2. VoidCallback? onTap,
  3. Color? color,
  4. double? elevation,
  5. Color? surfaceTintColor,
  6. required Widget child,
  7. EdgeInsetsGeometry padding = const EdgeInsets.all(kYaruPagePadding),
  8. ValueChanged<bool>? onHover,
  9. bool? selected,
  10. MouseCursor? mouseCursor,
})

Creates a banner with an arbitrary child widget.

Implementation

const YaruBanner({
  super.key,
  this.onTap,
  this.color,
  this.elevation,
  this.surfaceTintColor,
  required this.child,
  this.padding = const EdgeInsets.all(kYaruPagePadding),
  this.onHover,
  this.selected,
  this.mouseCursor,
});