argo library

Classes

Condition<T>
Parent class that has the rules for classes become a Condition valid class, this class serves as a skeleton for ConditionScreen and ConditionBreakpoint.
ConditionalResponsiveWidget<T>
Widget to do something if conditionalMatch a builder depending of the Condition. You can use ConditionScreen or ConditionBreakpoint each one will bring you a different control
ConditionBreakpoint<T>
Child Class of Condition, It's goal is to have more modular conditions compared it with differents breakpoint we can use this to create more complex conditions. ConditionBreakpoint will be use by valueFromConditionByBreakpoints
ConditionScreen<T>
Child class of Condition, It's goal is to have conditional value for the tree screen types mobile, tablet, desktop. For default the Conditional always will be EQUALS, ConditionScreen will be use by valueFromConditionByScreen
OrientationLayoutBuilder
The goal of this widget is it create views depending of their orientation
PlatformInfo
Class to know in what type of plataform is launched. Use if in the import to know if the app is launch in the web or in another plataform
ResponsiveBuilder
Widget to build a responsive view. This widget calculates internally ResponsiveInformation
ResponsiveInformation
SBValue class to stores the values of ScreenBreakpoints. SBValue save a value that means limit for a screen breakpoint is similar to Size.width. We can use differents type of values min, max, The types serves to do comparations between all the differents ScreenBreakpoints
ResponsiveLayoutWidget
Widget that shows different children depending of screen type, the screen was set from ResponsiveWrapper using globalBreakpoints, and you can override the globalBreakpoints for localBreakpoints.
ResponsiveTheme
Data class to handle the theme responsive information, this class may be used from ResponsiveWrapper It's used from ResponsiveWrapper to get the value for the currentBreakpoints Use differents conditions to store the themes.
ResponsiveUtils
This class is a middleware to save the responsive information, it is usefull when you have to do a lot of callings in the same file. It has the same behaviour as the BuildContext extension
ResponsiveVisibility
Widget to show or hide a child depending of the Condition. You can use ConditionScreen or ConditionBreakpoint each one will bring you a different control
ResponsiveWrapper
Widget to configure the responsive for the application. You can use it like global widget or builder widget into MaterialApp Widget. Adicionally allows to configurate the WrapperConfig. You can make the manage for Responsive Theme
SBValue
SBValue class to stores the values of ScreenBreakpoints. SBValue save a value that means limit for a screen breakpoint is similar to Size.width. We can use differents type of values min, max, The types serves to do comparations between all the differents ScreenBreakpoints
ScreenBreakpoints
ScreenBreakpoints are the control points that tells ResponsiveWrapper to change the DeviceScreen. This is an upper or lower limit depends on how it is configured compared with Size.width.
WrapperConfig
Data class to handle the global configururation for the ResponsiveWrapper Helps to define the rules for the responsive

Enums

Conditional
Has the type of conditionals for the Condition
ConditionType
To separate a class constructor creation by condition type in this case, you can choose screen to use ConditionScreen in thew constructor, you can choose conditions to use ConditionBreakpoint in thew constructor.
DeviceScreen
Enum that stores an interpretation of ScreenType for apps
PlatformInfoType
All types of plataforms that supports Flutter
ThemeRule
Enum to identificate the type of theme, supports light, dark, custom

Mixins

IThemeDataRule
Mixin for defining my owns ThemeData for the app.

Extensions

DeviceScreenX on DeviceScreen
Extension to compare and get type of DeviceScreen easily, additionally we can get the value depending of the current screen with getScreenValue method
ResponsiveContext on BuildContext
Extension to bring the information in a easier way for the responsive. All calculations related whit MediaQuery.of(context).size

Constants

defaultMaximumBreakPoints → const ScreenBreakpoints
Maximum values breakpoints for DeviceScreen.
defaultMinimumBreakPoints → const ScreenBreakpoints
Minimum values breakpoints for DeviceScreen.

Functions

getCurrentBreakPoints({required ScreenBreakpoints global, ScreenBreakpoints? local}) ScreenBreakpoints
Get the ScreenBreakpoints comparing the local, global and default values.
getResponsiveInformation({required BuildContext context, Size? localSize, ScreenBreakpoints? localBreakpoints}) ResponsiveInformation
Util to get the responsive information.
getSizeByPlatform(Size size, {bool shortestSide = false}) double
Gets the Width Size by platform,
valueFromConditionByBreakpoints<T>({required BuildContext context, required List<ConditionBreakpoint<T>> condition, ScreenBreakpoints? localBreakpoints, T? defaultValue}) → T?
The goal is to get the actual value for a list of conditions.
valueFromConditionByScreen<T>({required BuildContext context, required ConditionScreen<T> condition, ScreenBreakpoints? localBreakpoints, required T defaultValue}) → T?
{@template get_conditions_screen}

Typedefs

CBuilder<T> = Widget Function(BuildContext ctx, T match)
Signature for the builder function which takes the BuildContext and T? and is match conditions for the ConditionalResponsiveWidget.
RBuilder = Widget Function(BuildContext ctx, ResponsiveInformation info)
Signature for the builder function which takes the BuildContext and ResponsiveInformation and is responsible for returning a widget which is to be rendered.
RWBuilder = Widget Function(IThemeDataRule themeDataRule, ThemeRule rule)
Signature for the builder function which takes the previous IThemeDataRule and the current ThemeRule and is responsible for returning a widget for ResponsiveBuilder