M3EToolbar.floating constructor

const M3EToolbar.floating({
  1. Widget? leading,
  2. Widget? title,
  3. String? titleText,
  4. Widget? subtitle,
  5. String? subtitleText,
  6. Widget? trailing,
  7. List<M3EToolbarItem> actions = const <M3EToolbarItem>[],
  8. int maxInlineActions = 4,
  9. Widget overflowIcon = const Icon(M3EIcons.more_vert),
  10. bool centerTitle = false,
  11. AlignmentGeometry alignment = Alignment.center,
  12. M3EToolbarColorStyle colorStyle = M3EToolbarColorStyle.standard,
  13. M3EToolbarVariant? variant,
  14. M3EToolbarSize size = M3EToolbarSize.medium,
  15. Axis axis = Axis.horizontal,
  16. bool expanded = true,
  17. ValueChanged<bool>? onExpandedChanged,
  18. Widget? floatingActionButton,
  19. Widget? fabIcon,
  20. Widget? fabExpandIcon,
  21. Widget? fabCollapseIcon,
  22. VoidCallback? onFabPressed,
  23. M3EToolbarFabPosition fabPosition = M3EToolbarFabPosition.end,
  24. M3EToolbarDockEdge dockEdge = M3EToolbarDockEdge.bottom,
  25. Color? backgroundColor,
  26. Color? foregroundColor,
  27. double? elevation,
  28. EdgeInsetsGeometry? padding,
  29. bool safeArea = false,
  30. Clip clipBehavior = Clip.none,
  31. String? semanticLabel,
  32. M3EToolbarVisibilityController? visibilityController,
  33. M3EToolbarScrollBehavior? scrollBehavior,
  34. double? exitExtent,
  35. int? activeIndex,
  36. ValueChanged<int>? onActiveIndexChanged,
  37. 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;