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

Available on BuildContext, provided by the FluidoContext extension

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

Available on BuildContext, provided by the FluidoContext extension

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.