const
PreferredSizeWidget.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,
- ShapeBorder? shape,
- Color? backgroundColor,
- Color? foregroundColor,
- @Default(true) bool primary,
- bool? centerTitle,
- double? titleSpacing,
- @Default(1.0) double toolbarOpacity,
- @Default(1.0) double bottomOpacity,
- double? toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- @Default(false) bool forceMaterialTransparency}
)
Implementation
const factory PreferredSizeWidget.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,
ShapeBorder? shape,
Color? backgroundColor,
Color? foregroundColor,
@Default(true) bool primary,
bool? centerTitle,
@Default(false) bool excludeHeaderSemantics,
double? titleSpacing,
@Default(1.0) double toolbarOpacity,
@Default(1.0) double bottomOpacity,
double? toolbarHeight,
double? leadingWidth,
TextStyle? toolbarTextStyle,
TextStyle? titleTextStyle,
@Default(false) bool forceMaterialTransparency,
}) = AppBar;