responsive_logic library

Functions

ForScreenSize<T>(BuildContext context, {T? mobile, T? tablet, T? desktop, T? defaultValue}) → T
OptionalBuilder(BuildContext context, {WidgetBuilder? mobile, WidgetBuilder? tablet, WidgetBuilder? desktop, WidgetListBuilder? desktops}) List<Widget>
Does runtime analysis to determine whether to build any of the provided widgets.
ResponsiveItem<R>(BuildContext context, {ResponsiveExpression<R>? mobile, ResponsiveExpression<R>? tablet, ResponsiveExpression<R>? desktop, R? defaultValue}) → R
ResponsiveList<R>(BuildContext context, {ResponsiveExpression<R>? mobile, ResponsiveExpression<R>? tablet, ResponsiveExpression<R>? desktop, ResponsiveListExpression<R>? desktops, ResponsiveListExpression<R>? tablets}) List<R>

Typedefs

ResponsiveExpression<R> = R Function(BuildContext context)
ResponsiveListExpression<R> = List<R> Function(BuildContext context)
WidgetListBuilder = List<Widget> Function(BuildContext context)