LayoutInfo class
Provides info about how this scaffold should be laid out.
Uses getWindowType
from Material's adaptive_breakpoints
package to
determine which layout should be built and exposes getters such as
hasNavRail to define how the layout should look.
- Annotations
Constructors
- LayoutInfo(BuildContext context)
- Stores info about the layout based on Material Design breakpoints.
Properties
-
Whether the app should use a BottomNavigationBar.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether the app should use a NavigationRail.
no setter
- hasStandardDrawer → bool
-
Whether the app should have a persistent Drawer.
no setter
- hasStandardSideSheet → bool
-
Whether the app should have a persistent Scaffold.endDrawer.
no setter
- isDesktop → bool
-
Whether the app is running on a desktop.
no setter
- isMobile → bool
-
Whether the app is running on a phone.
no setter
- isTabletLandscape → bool
-
Whether the app is running on a tablet in landscape mode.
no setter
- isTabletPortrait → bool
-
Whether the app is running on a tablet in portrait mode (or a large phone).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- windowType → AdaptiveWindowType
-
The breakpoint as defined by material.io
final
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