MaterialBanner constructor
- Key? key,
- required Widget content,
- TextStyle? contentTextStyle,
- required List<
Widget> actions, - double? elevation,
- Widget? leading,
- Color? backgroundColor,
- Color? surfaceTintColor,
- Color? shadowColor,
- Color? dividerColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? leadingPadding,
- bool forceActionsBelow = false,
- OverflowBarAlignment overflowAlignment = OverflowBarAlignment.end,
- Animation<
double> ? animation, - VoidCallback? onVisible,
- double minActionBarHeight = 52.0,
Creates a MaterialBanner.
The length of the actions
list must not be empty. The elevation
must
be null or non-negative.
Implementation
const MaterialBanner({
super.key,
required this.content,
this.contentTextStyle,
required this.actions,
this.elevation,
this.leading,
this.backgroundColor,
this.surfaceTintColor,
this.shadowColor,
this.dividerColor,
this.padding,
this.margin,
this.leadingPadding,
this.forceActionsBelow = false,
this.overflowAlignment = OverflowBarAlignment.end,
this.animation,
this.onVisible,
this.minActionBarHeight = 52.0,
}) : assert(elevation == null || elevation >= 0.0);