ScreenSize enum
ResponsiveWidget
is a widget that makes the child widget responsive in all screen sizes.
it takes
child
as a widget that is used to show the widget.- Map<ScreenSize, double> as a map that contains the screen sizes and the width of the widget in that screen size.
useParentWidth
as a boolean value that determines whether the widget should use the parent width or hole screen width.showOn
as a list of ScreenSize that determines the screen sizes that the widget should be shown on.hideOn
as a list of ScreenSize that determines the screen sizes that the widget should be hidden on.ResponsiveSize
ScreenSize
Values
- all → const ScreenSize
-
all
- none → const ScreenSize
-
none
- s → const ScreenSize
-
small screen size
- m → const ScreenSize
-
medium screen size
- l → const ScreenSize
-
large screen size
- xl → const ScreenSize
-
extra large screen size
- xxl → const ScreenSize
-
extra extra large screen size
Properties
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
Constants
-
values
→ const List<
ScreenSize> - A constant List of the values in this enum, in order of their declaration.