BannerListTile constructor

const BannerListTile({
  1. Key? key,
  2. String? bannerText,
  3. double? bannerSize = 40.0,
  4. bool? showBanner = true,
  5. BannerPosition? bannerPosition = BannerPosition.topRight,
  6. Color? bannerTextColor,
  7. Color? bannerColor,
  8. Widget? bannerIcon,
  9. double? bannerIconRotation = 4,
  10. Text? title,
  11. Widget? subtitle,
  12. double? subtitleOpacity = 0.80,
  13. BorderRadius? borderRadius,
  14. Widget? imageContainer,
  15. double? imageContainerSize = 80.0,
  16. int? imageContainerShapeZigzagIndex,
  17. Widget? trailing,
  18. bool? centerTrailingbyImageboxsize = true,
  19. double? trailingBoxwidth,
  20. Color? backgroundColor = const Color(0xff003354),
  21. double? height,
  22. double? width,
  23. EdgeInsetsGeometry? margin,
  24. double? elevation,
  25. BorderSide? borderSide,
  26. dynamic onTap()?,
  27. dynamic onTapCancel()?,
  28. dynamic onHighlightChanged(
    1. bool
    )?,
  29. dynamic onFocusChange(
    1. bool
    )?,
  30. dynamic onTapDown(
    1. TapDownDetails
    )?,
  31. dynamic onLongPress()?,
  32. dynamic onHover(
    1. bool
    )?,
  33. dynamic onDoubleTap()?,
})

Suitable for use in column or listview or anykind of vertical list. then it will automatically take a height by given child.

Otherwise height & width must be given or it will take all the available space it get.

Implementation

const BannerListTile({
  Key? key,
  this.bannerText,
  this.bannerSize = 40.0,
  this.showBanner = true,
  this.bannerPosition = BannerPosition.topRight,
  this.bannerTextColor,
  this.bannerColor,
  this.bannerIcon,
  this.bannerIconRotation = 4,
  this.title,
  this.subtitle,
  this.subtitleOpacity = 0.80,
  this.borderRadius,
  this.imageContainer,
  this.imageContainerSize = 80.0,
  this.imageContainerShapeZigzagIndex,
  this.trailing,
  this.centerTrailingbyImageboxsize = true,
  this.trailingBoxwidth,
  this.backgroundColor = const Color(0xff003354),
  this.height,
  this.width,
  this.margin,
  this.elevation,
  this.borderSide,
  this.onTap,
  this.onTapCancel,
  this.onHighlightChanged,
  this.onFocusChange,
  this.onTapDown,
  this.onLongPress,
  this.onHover,
  this.onDoubleTap,
}) : super(key: key);