material library
Material Design breakpoints for Breaker.
Exports materialWindowBreakpoints and materialLayoutBreakpoints along
with everything from package:breaker/breaker.dart, so this single import
is enough when using the Material breakpoints.
Classes
- Breaker
- Static accessors for the values resolved by the nearest BreakerWindow and BreakerLayout ancestors.
- BreakerLayout
- Resolves the active LayoutBreakpoint from the available constraints and exposes the result to descendants through a LayoutModel.
- BreakerWindow
-
Resolves the active WindowBreakpoint from the window size and exposes the
result to descendants through a
WindowModel. - BreakerWindowState
- State for BreakerWindow. Detects the device and platform once and re-resolves the breakpoint whenever the MediaQuery changes.
- Cell
- A child of a responsive layout that spans a number of axes (columns).
- LayoutBreakpoint
- Describes a column grid for a range of available sizes.
- LayoutConstraints
- The resolved measurements of a LayoutBreakpoint for a specific available width: margin, axis size, axis count and spacing.
- LayoutModel
- An InheritedModel exposing the resolved layout values.
- ResponsiveGridLayout
- A GridView whose column count, spacing and margins follow the active LayoutBreakpoint.
- ResponsiveLayoutBuilder
- A LayoutBuilder that resolves the active LayoutBreakpoint and passes the resulting LayoutConstraints to builder.
- ResponsiveLayoutOverlay
- Draws the margins, axes and spacing of a layout behind child for debugging.
- ResponsiveVerticalLayout
- Lays cells out in a horizontal Row (vertical columns of the grid), sized and spaced according to the active LayoutBreakpoint.
- WindowBreakpoint
- Describes the window configuration for a range of window sizes.
Enums
- DeviceType
- The kind of device the app is running on.
- LayoutAspect
- The individually observable values of a LayoutModel.
- The style of navigation a window should present.
- OverlayType
- The direction of the axes drawn by a ResponsiveLayoutOverlay.
- PlatformType
- The platform the app is running on.
Properties
-
materialLayoutBreakpoints
→ List<
LayoutBreakpoint> -
Layout breakpoints following the Material Design responsive layout grid.
final
-
materialWindowBreakpoints
→ List<
WindowBreakpoint> -
Window breakpoints based on the Material Design window size classes.
final
Typedefs
- ResponsiveWidgetBuilder = Widget Function(BuildContext context, LayoutConstraints constraints)
- Builds a widget from the resolved LayoutConstraints.