CustomSliverAppBar constructor
const
CustomSliverAppBar({
- Key? key,
- String? title,
- Widget? titleWidget,
- double expandedHeight = 200.0,
- double collapsedHeight = 60.0,
- bool pinned = true,
- bool floating = false,
- bool snap = false,
- bool stretch = false,
- double stretchTriggerOffset = 100.0,
- VoidCallback? onStretchTrigger,
- Widget? leading,
- bool showBackButton = true,
- IconData backIcon = Icons.arrow_back_ios,
- Color? backIconColor,
- VoidCallback? onBack,
- List<
Widget> ? actions, - List<
Color> ? gradientColors, - AlignmentGeometry gradientBegin = Alignment.topLeft,
- AlignmentGeometry gradientEnd = Alignment.bottomRight,
- Color? backgroundColor,
- Color? foregroundColor,
- double elevation = 0,
- bool centerTitle = true,
- Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- ShapeBorder? shape,
- Color? titleColor,
- double titleFontSize = 20.0,
- FontWeight titleFontWeight = FontWeight.bold,
- String? semanticLabel,
- 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,
});