adaptive_style 0.0.2
adaptive_style: ^0.0.2 copied to clipboard
Make you Flutter UI both responsive and adaptive
adaptive_style #
a collection of widgets to build scalable UI
WARNING #
this package is an early release and under development breaking changes are most likely to occur
how does it work? #
- wrap your app in a
ScaleRefProvider - provide a list of supported sizes
ScaleRefProvider(
deviceSizes: const [DeviceSize.iphoneSE],
///...
- use
SizeRefto get- the closest supported size
- the scale between the device size and the supported size
what's included? #
AdaptiveWidgetthe base to build your own custom adaptive widgetAdaptiveStackjust like aStackbut builds it's children as anAdaptiveWidgetAdaptiveAnchorPositionedaPositionedthat place itself at one of the parent's edges