FluidoContext extension

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

on

Methods

layoutSwitchWidget({FluidoBreakpoints? breakpoints, required Widget sm, Widget? md, Widget? lg, Widget? xl, Widget? xl2}) Widget
Selects the specified Widget based on the size of the parent widget. It updates automatically as dimensions change.
screenSwitchValue<Type>({FluidoBreakpoints? breakpoints, required Type sm, Type? md, Type? lg, Type? xl, Type? xl2}) → 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.