SmoothAppBar constructor
SmoothAppBar({ - Widget? leading,
- bool automaticallyImplyLeading = true,
- Widget? actionModeTitle,
- Widget? actionModeSubTitle,
- Widget? title,
- Widget? subTitle,
- bool animateActionMode = false,
- List<Widget>? actionModeActions,
- List<Widget>? actions,
- Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double elevation = 1.0,
- double? scrolledUnderElevation = 0.0,
- ScrollNotificationPredicate? notificationPredicate,
- Color? shadowColor,
- Color? elevationColor,
- Color? backgroundColor,
- Color? foregroundColor,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- bool primary = true,
- bool? centerTitle,
- double? titleSpacing,
- ShapeBorder? shape,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
- bool actionMode = false,
- String? actionModeCloseTooltip,
- VoidCallback? onLeaveActionMode,
- bool? ignoreSemanticsForSubtitle = false,
- bool forceMaterialTransparency = false,
- Clip? clipBehavior,
- Key? key,
})
Implementation
SmoothAppBar({
this.leading,
this.automaticallyImplyLeading = true,
this.actionModeTitle,
this.actionModeSubTitle,
this.title,
this.subTitle,
this.animateActionMode = false,
this.actionModeActions,
this.actions,
this.flexibleSpace,
this.bottom,
this.elevation = 1.0,
this.scrolledUnderElevation = 0.0,
this.notificationPredicate,
this.shadowColor,
this.elevationColor,
this.backgroundColor,
this.foregroundColor,
this.iconTheme,
this.actionsIconTheme,
this.primary = true,
this.centerTitle,
this.excludeHeaderSemantics = false,
this.titleSpacing,
this.shape,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.toolbarHeight,
this.leadingWidth,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
this.actionMode = false,
this.actionModeCloseTooltip,
this.onLeaveActionMode,
this.ignoreSemanticsForSubtitle = false,
this.forceMaterialTransparency = false,
this.clipBehavior,
super.key,
}) : assert(!actionMode || actionModeTitle != null),
assert(
elevationColor == null || elevation >= 0.0,
'elevationColor requires a valid elevation',
),
preferredSize = _PreferredAppBarSize(
toolbarHeight,
bottom?.preferredSize.height,
);