BackAppBar constructor
BackAppBar({
- Key? key,
- void onTap()?,
- bool disabled = false,
- IconData? icon,
- bool adaptiveBackButton = true,
- bool automaticallyImplyLeading = false,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation = 0,
- Color? shadowColor = Colors.transparent,
- ShapeBorder? shape,
- Color? backgroundColor = Colors.transparent,
- Color? foregroundColor = Colors.transparent,
- Brightness? brightness,
- IconThemeData? iconTheme = const IconThemeData(color: Colors.black),
- IconThemeData? actionsIconTheme = const IconThemeData(color: Colors.black),
- TextTheme? textTheme,
- bool primary = true,
- bool? centerTitle,
- bool excludeHeaderSemantics = false,
- double? titleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? toolbarHeight,
- double? leadingWidth,
- bool? backwardsCompatibility,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
Implementation
BackAppBar({
Key? key,
this.onTap,
this.disabled = false,
this.icon,
this.adaptiveBackButton = true,
this.automaticallyImplyLeading = false,
this.title,
this.actions,
this.flexibleSpace,
this.bottom,
this.elevation = 0,
this.shadowColor = Colors.transparent,
this.shape,
this.backgroundColor = Colors.transparent,
this.foregroundColor = Colors.transparent,
this.brightness,
this.iconTheme = const IconThemeData(color: Colors.black),
this.actionsIconTheme = const IconThemeData(color: Colors.black),
this.textTheme,
this.primary = true,
this.centerTitle,
this.excludeHeaderSemantics = false,
this.titleSpacing,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.toolbarHeight,
this.leadingWidth,
this.backwardsCompatibility,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
}) : assert(elevation == null || elevation >= 0.0),
preferredSize = Size.fromHeight(toolbarHeight ??
kToolbarHeight + (bottom?.preferredSize.height ?? 0.0)),
super(key: key);