CustomBanner constructor
const
CustomBanner({
- required Widget content,
- required List<
Widget> actions, - Key? key,
- TextStyle? contentTextStyle,
- 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,
- CustomBannerType? type = CustomBannerType.info,
Banner 横幅组件
Implementation
const CustomBanner({
required this.content,
required this.actions,
super.key,
this.contentTextStyle,
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,
// -------------------------------------------------------------------------------------------- > Custom
this.type = CustomBannerType.info,
});