LayoutSwitchWidget class
Selects the specified Widget based on the size of the parent widget. It updates automatically as dimensions change.
Specify the breakpoints parameter to use custom local breakpoints.
Constructors
- LayoutSwitchWidget(BuildContext context, {required Widget sm, Widget? md, Widget? lg, Widget? xl, Widget? xl2, FluidoBreakpoints? breakpoints})
-
const
Properties
- breakpoints → FluidoBreakpoints?
-
final
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → Widget?
-
final
- md → Widget?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → Widget
-
final
- widget → Widget
-
The Widget selected, depending on the size of the parent widget.
no setter
- xl → Widget?
-
final
- xl2 → Widget?
-
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