LayoutSlot enum
Defines standard layout slots where UI components can be placed. This enum can be extended as needed for more specific layout requirements.
Values
- body → const LayoutSlot
-
The main content area of the screen.
- leftDrawer → const LayoutSlot
-
A slot for a side drawer, typically on the left.
- rightDrawer → const LayoutSlot
-
A slot for a side drawer, typically on the right.
-
A slot for secondary navigation or content, often used in master-detail layouts.
- appBar → const LayoutSlot
-
Slot for an AppBar or a similar top-level header bar.
- sliverAppBar → const LayoutSlot
-
Slot for a SliverAppBar or a similar scrolling top-level header bar.
-
Slot specifically for a BottomNavigationBar if not handled by primaryNavigation. Useful if primaryNavigation is a Drawer/Rail and a BottomNav is also desired on small screens.
- floatingActionButton → const LayoutSlot
-
Slot for a FloatingActionButton.
-
A slot for a persistent bottom sheet or a similar UI element at the bottom of the screen.
- overlay → const LayoutSlot
-
A slot for content that might overlay the body, like a snackbar or custom toast area, though these are often handled differently via ScaffoldMessenger or Overlay. Including it for completeness if direct widget placement is desired.
-
A general-purpose footer area, typically at the bottom of the page content.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
LayoutSlot> - A constant List of the values in this enum, in order of their declaration.