fluido library

A simple and lightweight package to efficiently create reactive and responsive user interfaces.

Fluido widgets are based on the use of breakpoints. If no value is specified for a given breakpoints, the lower closest non-null value is used. This allows you to incrementally specify which value you want to get.

Breakpoints are used to select a value depending on the width of the screen or window, for example with the ScreenWidth and LayoutWidth widgets. To select a value based on orientation, landscape or portrait, use the ScreenOrientation and LayoutOrientation widgets.

Objects named with Screen* refer to the size of the screen or window. Objects named with Layout* refer to the size of the parent widget and can therefore only be used as a widget.

To globally customize breakpoints use FluidoSettings.

Classes

FluidoBreakpoints
Contains the maximum values, in logical pixels, for the breakpoints.
FluidoSettings
Contains the settings for the Fluid package.
LayoutOrientation
Select the specified widget according to the parent widget orientation.
LayoutSwitchWidget
Selects the specified Widget based on the size of the parent widget. It updates automatically as dimensions change.
LayoutWidth
Select the specified Widget based on the size of the parent widget.
ScreenOrientation
Select the specified widget according to the screen orientation.
ScreenSwitchValue<Type>
Selects the specified value according to the screen or window size. It updates automatically as dimensions change and can be used for values of any type.
ScreenWidth
Select the specified Widget according to the screen or window size.
ScreenWidthWrap
Select the Widget obtained as a result of the specified Function according to the screen or window size. Functions take as input the content widget passed as a parameter.

Extensions

FluidoContext on BuildContext
Collection of methods to use LayoutSwitchWidget and ScreenSwitchValue more immediately by accessing them directly from the BuildContext.