const
Sliver.appBar(- {Key? key,
- Widget? leading,
- @Default(true) bool automaticallyImplyLeading,
- Widget? title,
- List<Widget>? actions,
- Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- @Default(true) bool forceElevated,
- Color? backgroundColor,
- Color? foregroundColor,
- @Default(true) bool primary,
- bool? centerTitle,
- double? titleSpacing,
- double? collapsedHeight,
- double? expandedHeight,
- @Default(true) bool floating,
- @Default(true) bool pinned,
- @Default(true) bool snap,
- @Default(true) bool stretch,
- @Default(100.0) double stretchTriggerOffset,
- ShapeBorder? shape,
- @Default(56.0) double toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- @Default(true) bool forceMaterialTransparency}
)
Implementation
const factory Sliver.appBar({
Key? key,
Widget? leading,
@Default(true) bool automaticallyImplyLeading,
Widget? title,
List<Widget>? actions,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
@Default(true) bool forceElevated,
Color? backgroundColor,
Color? foregroundColor,
@Default(true) bool primary,
bool? centerTitle,
@Default(true) bool excludeHeaderSemantics,
double? titleSpacing,
double? collapsedHeight,
double? expandedHeight,
@Default(true) bool floating,
@Default(true) bool pinned,
@Default(true) bool snap,
@Default(true) bool stretch,
@Default(100.0) double stretchTriggerOffset,
ShapeBorder? shape,
@Default(56.0) double toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle,
@Default(true) bool forceMaterialTransparency,
}) = SliverAppBar;