const
MaterialBanner(- {Key? key,
- required Widget content,
- TextStyle? contentTextStyle,
- required List<Widget> actions,
- double? elevation,
- Widget? leading,
- Color? backgroundColor,
- Color? surfaceTintColor,
- Color? shadowColor,
- Color? dividerColor,
- EdgeInsets? padding,
- EdgeInsets? leadingPadding,
- @Default(false) bool forceActionsBelow,
- @Default(OverflowBarAlignment.end) OverflowBarAlignment overflowAlignment,
- Callback? onVisible}
)
Implementation
const factory MaterialBanner({
Key? key,
required Widget content,
TextStyle? contentTextStyle,
required List<Widget> actions,
double? elevation,
Widget? leading,
Color? backgroundColor,
Color? surfaceTintColor,
Color? shadowColor,
Color? dividerColor,
EdgeInsets? padding,
EdgeInsets? leadingPadding,
@Default(false) bool forceActionsBelow,
@Default(OverflowBarAlignment.end) OverflowBarAlignment overflowAlignment,
Callback? onVisible,
}) = _MaterialBanner;