UiBreakpoints class

Default breakpoints used when callers don't override. Picked to match Material 3 / Apple HIG recommendations:

  • < 600dp → phone
  • 600..900dp → tablet (small landscape / foldable / portrait iPad)
  • >= 900dp → desktop (iPad landscape / macOS / Android tablet L)
Annotations

Constructors

UiBreakpoints({double phone = 600, double desktop = 900})
const

Properties

desktop double
Min width at or above which the layout is treated as a desktop.
final
hashCode int
The hash code for this object.
no setterinherited
phone double
Max width below which the layout is treated as a phone.
final
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
resolve(double width) UiFormFactor
Resolve the form factor for a given width (logical pixels).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

standard → const UiBreakpoints
Default breakpoints. Use when no per-app override is desired.