M3EToolbar.floating constructor
const
M3EToolbar.floating({
- Widget? leading,
- Widget? title,
- String? titleText,
- Widget? subtitle,
- String? subtitleText,
- Widget? trailing,
- List<
M3EToolbarItem> actions = const <M3EToolbarItem>[], - int maxInlineActions = 4,
- Widget overflowIcon = const Icon(M3EIcons.more_vert),
- bool centerTitle = false,
- AlignmentGeometry alignment = Alignment.center,
- M3EToolbarColorStyle colorStyle = M3EToolbarColorStyle.standard,
- M3EToolbarVariant? variant,
- M3EToolbarSize size = M3EToolbarSize.medium,
- Axis axis = Axis.horizontal,
- bool expanded = true,
- ValueChanged<
bool> ? onExpandedChanged, - Widget? floatingActionButton,
- Widget? fabIcon,
- Widget? fabExpandIcon,
- Widget? fabCollapseIcon,
- VoidCallback? onFabPressed,
- M3EToolbarFabPosition fabPosition = M3EToolbarFabPosition.end,
- M3EToolbarDockEdge dockEdge = M3EToolbarDockEdge.bottom,
- Color? backgroundColor,
- Color? foregroundColor,
- double? elevation,
- EdgeInsetsGeometry? padding,
- bool safeArea = false,
- Clip clipBehavior = Clip.none,
- String? semanticLabel,
- M3EToolbarVisibilityController? visibilityController,
- M3EToolbarScrollBehavior? scrollBehavior,
- double? exitExtent,
- int? activeIndex,
- ValueChanged<
int> ? onActiveIndexChanged, - Key? key,
Explicit floating constructor (same as default).
Implementation
const M3EToolbar.floating({
this.leading,
this.title,
this.titleText,
this.subtitle,
this.subtitleText,
this.trailing,
this.actions = const <M3EToolbarItem>[],
this.maxInlineActions = 4,
this.overflowIcon = const Icon(M3EIcons.more_vert),
this.centerTitle = false,
this.alignment = Alignment.center,
this.colorStyle = M3EToolbarColorStyle.standard,
this.variant,
this.size = M3EToolbarSize.medium,
this.axis = Axis.horizontal,
this.expanded = true,
this.onExpandedChanged,
this.floatingActionButton,
this.fabIcon,
this.fabExpandIcon,
this.fabCollapseIcon,
this.onFabPressed,
this.fabPosition = M3EToolbarFabPosition.end,
this.dockEdge = M3EToolbarDockEdge.bottom,
this.backgroundColor,
this.foregroundColor,
this.elevation,
this.padding,
this.safeArea = false,
this.clipBehavior = Clip.none,
this.semanticLabel,
this.visibilityController,
this.scrollBehavior,
this.exitExtent,
this.activeIndex,
this.onActiveIndexChanged,
super.key,
}) : placement = M3EToolbarPlacement.floating;