responsive_layout_builder library
Classes
- ResponsiveLayoutBuilder
- Builds a widget tree that can depend on the parent widget's LayoutSize (orientation and layout).
- ScreenSize
- ScreenSize stores data of LayoutSize, MobileLayoutSize and TabletLayoutSize
- ScreenSizeSettings
- Holder of max size of different screens
Enums
- LayoutSize
- LayoutSize defines types of layout size
- MobileLayoutSize
- MobileLayoutSize defines types of mobile layout size
- TabletLayoutSize
- TabletLayoutSize defines types of tablet layout size
Functions
-
getContextualScreenSize(
{required BuildContext context, Orientation? orientation, LayoutSize defaultSize = LayoutSize.mobile, ScreenSizeSettings sizes = const ScreenSizeSettings.portrait()}) → ScreenSize - Gets type of screen size based on BuildContext
-
getMobileLayoutSize(
{required double width, ScreenSizeSettings sizes = const ScreenSizeSettings.portrait()}) → MobileLayoutSize - Gets type of mobile layout size
-
getScreenSize(
{required double width, Orientation? orientation, LayoutSize defaultSize = LayoutSize.mobile, ScreenSizeSettings sizes = const ScreenSizeSettings.portrait()}) → ScreenSize - Gets type of screen size based on width
-
getTabletLayoutSize(
{required double width, ScreenSizeSettings sizes = const ScreenSizeSettings.portrait()}) → TabletLayoutSize - Gets type of tablet layout size
Typedefs
- ResponsiveLayoutWidgetBuilder = Widget Function(BuildContext context, ScreenSize size)
- Signature for a function that builds a widget given an LayoutSize.