CustomSliverAppBar constructor

const CustomSliverAppBar({
  1. Key? key,
  2. String? title,
  3. Widget? titleWidget,
  4. double expandedHeight = 200.0,
  5. double collapsedHeight = 60.0,
  6. bool pinned = true,
  7. bool floating = false,
  8. bool snap = false,
  9. bool stretch = false,
  10. double stretchTriggerOffset = 100.0,
  11. VoidCallback? onStretchTrigger,
  12. Widget? leading,
  13. bool showBackButton = true,
  14. IconData backIcon = Icons.arrow_back_ios,
  15. Color? backIconColor,
  16. VoidCallback? onBack,
  17. List<Widget>? actions,
  18. List<Color>? gradientColors,
  19. AlignmentGeometry gradientBegin = Alignment.topLeft,
  20. AlignmentGeometry gradientEnd = Alignment.bottomRight,
  21. Color? backgroundColor,
  22. Color? foregroundColor,
  23. double elevation = 0,
  24. bool centerTitle = true,
  25. Widget? flexibleSpace,
  26. PreferredSizeWidget? bottom,
  27. ShapeBorder? shape,
  28. Color? titleColor,
  29. double titleFontSize = 20.0,
  30. FontWeight titleFontWeight = FontWeight.bold,
  31. String? semanticLabel,
  32. bool? enableSecurity,
})

Implementation

const CustomSliverAppBar({
  super.key,
  this.title,
  this.titleWidget,
  this.expandedHeight = 200.0,
  this.collapsedHeight = 60.0,
  this.pinned = true,
  this.floating = false,
  this.snap = false,
  this.stretch = false,
  this.stretchTriggerOffset = 100.0,
  this.onStretchTrigger,
  this.leading,
  this.showBackButton = true,
  this.backIcon = Icons.arrow_back_ios,
  this.backIconColor,
  this.onBack,
  this.actions,
  this.gradientColors,
  this.gradientBegin = Alignment.topLeft,
  this.gradientEnd = Alignment.bottomRight,
  this.backgroundColor,
  this.foregroundColor,
  this.elevation = 0,
  this.centerTitle = true,
  this.flexibleSpace,
  this.bottom,
  this.shape,
  this.titleColor,
  this.titleFontSize = 20.0,
  this.titleFontWeight = FontWeight.bold,
  this.semanticLabel,
  this.enableSecurity,
});