AdaptiveAppBar constructor
AdaptiveAppBar({
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- Color? shadowColor,
- ShapeBorder? shape,
- Color? backgroundColor,
- IconThemeData? iconThemeData,
- IconThemeData? actionsIconThemeData,
- bool primary = true,
- bool? centerTitle,
- bool excludeHeaderSemantics = false,
- double titleSpacing = NavigationToolbar.kMiddleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
Implementation
AdaptiveAppBar({
super.key,
this.leading,
this.automaticallyImplyLeading = true,
this.title,
this.actions,
this.flexibleSpace,
this.bottom,
this.elevation,
this.shadowColor,
this.shape,
this.backgroundColor,
this.iconThemeData,
this.actionsIconThemeData,
this.primary = true,
this.centerTitle,
this.excludeHeaderSemantics = false,
this.titleSpacing = NavigationToolbar.kMiddleSpacing,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.toolbarHeight,
this.leadingWidth,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
}) : assert(elevation == null || elevation >= 0.0),
preferredSize = Size.fromHeight(toolbarHeight ??
kToolbarHeight + (bottom?.preferredSize.height ?? 0.0));