MaterialUIBreakpoint enum
Defines breakpoints based on the Material 3 layout system.
These breakpoints are used to adapt UI layouts depending on screen width, as recommended by the Material Design responsive layout guidelines.
Implements BreakpointSpec so it can be used with utilities like ResponsiveBreakpointTheme.
Breakpoint Ranges:
small
: <600 px — typically phonesmedium
: 600–839 px — typically tabletslarge
: ≥840 px — typically desktops
Example:
final current = ResponsiveBreakpointTheme.of<MaterialUIBreakpoint>(context);
if (current == MaterialUIBreakpoint.large) {
// Render wide-screen layout
}
- Inheritance
- Implemented types
- Available extensions
Values
- small → const MaterialUIBreakpoint
-
Small window size: less than 600px.
const MaterialUIBreakpoint(breakpoint: 0)
- medium → const MaterialUIBreakpoint
-
Medium window size: 600px to 839px.
const MaterialUIBreakpoint(breakpoint: 600)
- large → const MaterialUIBreakpoint
-
Large window size: 840px and up.
const MaterialUIBreakpoint(breakpoint: 840)
Properties
- breakpoint → double
-
The minimum width (in logical pixels) at which this breakpoint applies.
final
- 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 <(
BreakpointSpec other) → bool -
Available on BreakpointSpec, provided by the BreakpointComparison extension
Returnstrue
if this breakpoint is less thanother
. -
operator <=(
BreakpointSpec other) → bool -
Available on BreakpointSpec, provided by the BreakpointComparison extension
Returnstrue
if this breakpoint is less than or equal toother
. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
BreakpointSpec other) → bool -
Available on BreakpointSpec, provided by the BreakpointComparison extension
Returnstrue
if this breakpoint is greater thanother
. -
operator >=(
BreakpointSpec other) → bool -
Available on BreakpointSpec, provided by the BreakpointComparison extension
Returnstrue
if this breakpoint is greater than or equal toother
.
Constants
-
values
→ const List<
MaterialUIBreakpoint> - A constant List of the values in this enum, in order of their declaration.