res_builder 1.1.2 res_builder: ^1.1.2 copied to clipboard
A Flutter Widget for building responsive UI by providing different layouts for different screen sizes.
1.0.0 #
Responsive()
: Define three types of widgets which are automatically chosen based on the screen width.Responsive.builder()
: Define builder methods to build the widgets.Responsive.withShared<T>()
: Define are shared child which can be any type and will be shared between all the layouts.Responsive.value<T>()
: Define a simple value which is responsively chosen.- To customize the layout behavior, you may override the
upperBound
and/orlowerBound
static properties as well as theisMobile
,isDesktop
andisTablet
static methods.
1.1.0 #
- new optional parameter for all constructors added: preferredTabletFormat. Can be used to set an alternative format for tablet devices, if no onTablet is provided.
1.1.1 #
- updated internal behavior to dry up the code.
1.1.2 #
- renamed internal typedef to avoid name collisions with core flutter defaults.