BaseAppBar constructor
const
BaseAppBar({
- Key? key,
- Widget? leading,
- Widget? trailing,
- bool automaticallyImplyLeading = true,
- bool automaticallyImplyMiddle = true,
- Color? backgroundColor,
- Brightness? brightness,
- String? previousPageTitle,
- Widget? middle,
- Border? border = const Border(bottom: BorderSide(color: Color(0x4C000000), width: 0.0, style: BorderStyle.solid)),
- EdgeInsetsDirectional? padding,
- bool? transitionBetweenRoutes,
- Object? heroTag,
- bool? backdropFilter,
- double? height,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation = 4.0,
- IconThemeData? iconTheme,
- Color? shadowColor,
- ShapeBorder? shape,
- IconThemeData? actionsIconTheme,
- TextTheme? textTheme,
- bool primary = true,
- bool? centerTitle,
- double? titleSpacing = NavigationToolbar.kMiddleSpacing,
- bool excludeHeaderSemantics = false,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- Color? foregroundColor,
- double? leadingWidth,
- bool? backwardsCompatibility,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
- List<
BaseNavigationBarAction> ? leadingActions, - List<
BaseNavigationBarAction> ? trailingActions, - bool transparent = false,
- bool largeTitle = false,
- Color? tint,
- List<
String> ? segmentedControlLabels, - int? segmentedControlSelectedIndex,
- ValueChanged<
int> ? onSegmentedControlValueChanged, - double? segmentedControlHeight,
- Color? segmentedControlTint,
- double? segmentedControlLabelSize,
- BaseParam? baseParam,
Implementation
const BaseAppBar({
Key? key,
this.leading,
this.trailing,
this.automaticallyImplyLeading = true,
this.automaticallyImplyMiddle = true,
this.backgroundColor,
this.brightness,
this.previousPageTitle,
this.middle,
this.border = const Border(
bottom: BorderSide(
color: Color(0x4C000000),
width: 0.0, // One physical pixel.
style: BorderStyle.solid,
),
),
this.padding,
this.transitionBetweenRoutes,
this.heroTag,
this.backdropFilter,
this.height,
this.title,
this.actions,
this.flexibleSpace,
this.bottom,
this.elevation = 4.0,
this.iconTheme,
this.shadowColor,
this.shape,
this.actionsIconTheme,
this.textTheme,
this.primary = true,
this.centerTitle,
this.titleSpacing = NavigationToolbar.kMiddleSpacing,
this.excludeHeaderSemantics = false,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.foregroundColor,
this.leadingWidth,
this.backwardsCompatibility,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
this.leadingActions,
this.trailingActions,
this.transparent = false,
this.largeTitle = false,
this.tint,
this.segmentedControlLabels,
this.segmentedControlSelectedIndex,
this.onSegmentedControlValueChanged,
this.segmentedControlHeight,
this.segmentedControlTint,
this.segmentedControlLabelSize,
BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);