ResponsiveAppBar constructor
ResponsiveAppBar({
- Key? key,
- Widget? title,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- ShapeBorder? shape,
- Color? backgroundColor,
- SystemUiOverlayStyle? systemUiOverlayStyle,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- TextStyle? titleTextStyle,
- bool primary = true,
- bool centerTitle = true,
- bool excludeHeaderSemantics = false,
- double titleSpacing = NavigationToolbar.kMiddleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
Implementation
ResponsiveAppBar({
Key? key,
Widget? title,
Widget? leading,
bool automaticallyImplyLeading = true,
List<Widget>? actions,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
ShapeBorder? shape,
Color? backgroundColor,
SystemUiOverlayStyle? systemUiOverlayStyle,
IconThemeData? iconTheme,
IconThemeData? actionsIconTheme,
TextStyle? titleTextStyle,
bool primary = true,
bool centerTitle = true,
bool excludeHeaderSemantics = false,
double titleSpacing = NavigationToolbar.kMiddleSpacing,
double toolbarOpacity = 1.0,
double bottomOpacity = 1.0,
}) : super(
key: key,
title: title,
leading: leading,
automaticallyImplyLeading: automaticallyImplyLeading,
actions: actions,
flexibleSpace: flexibleSpace,
bottom: bottom,
elevation: elevation,
shape: shape,
backgroundColor: backgroundColor,
systemOverlayStyle: systemUiOverlayStyle,
iconTheme: iconTheme,
actionsIconTheme: actionsIconTheme,
titleTextStyle: titleTextStyle,
primary: !ResponsiveHelper.currently(ScreenType.Watch),
centerTitle: centerTitle,
excludeHeaderSemantics: excludeHeaderSemantics,
titleSpacing: titleSpacing,
toolbarOpacity: toolbarOpacity,
bottomOpacity: bottomOpacity,
);