ScreenLayout class
Follow Material Guidelines to understand how to use this data class https://material.io/design/layout/responsive-layout-grid.html https://material.io/archive/guidelines/layout/responsive-ui.html
- Annotations
Constructors
- ScreenLayout.new({required LayoutMode mode, required int columns, required double? margin, required double? content})
-
const
- ScreenLayout.fromSize(Size size)
-
factory
Properties
- columns → int
-
Number of columns of the screen
final
- content → double?
-
Content max width
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- margin → double?
-
Horizontal content margin
final
- mode → LayoutMode
-
Guess screen device from it's size
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
of(
BuildContext context) → ScreenLayout