CustomBanner constructor

const CustomBanner({
  1. required Widget content,
  2. required List<Widget> actions,
  3. Key? key,
  4. TextStyle? contentTextStyle,
  5. double? elevation,
  6. Widget? leading,
  7. Color? backgroundColor,
  8. Color? surfaceTintColor,
  9. Color? shadowColor,
  10. Color? dividerColor,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. EdgeInsetsGeometry? leadingPadding,
  14. bool forceActionsBelow = false,
  15. OverflowBarAlignment overflowAlignment = OverflowBarAlignment.end,
  16. Animation<double>? animation,
  17. VoidCallback? onVisible,
  18. 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,
});