assorted_layout_widgets library

Classes

Box
Button
Transforms any widget in a button, with visual feedback in the onPointerDown. The widget must be created with a builder of type ButtonBuilder, which provides an isPressed boolean to indicate whether the button is pressed or not.
ButtonBarSuper
CaptureGestures
All touches in the child will be captured and ignored.
CircleButton
Circular button, similar to IconButton, but with the following differences:
ColumnSuper
For more info, see: https://pub.dartlang.org/packages/assorted_layout_widgets
Delayed
This widget can be used with implicitly animated widgets to give it an initial value, and then quickly change it to another.
FitHorizontally
The child will be asked to define its own intrinsic height. If fitsHeight is true, the child will be proportionately resized (keeping its aspect ratio) to fit the available height.
GlobalStringKey
Global-key that uses equals operator == of the String value to identify the key.
GlobalValueKey<T extends State<StatefulWidget>>
Global-key that uses equals operator == of the keyValue to identify the key.
KeyboardDismiss
Wrap your widget tree with a KeyboardDismiss so that:
MaskFunctionTextInputFormatter
A TextInputFormatter based on the maskFunction formatter, for using in TextFields.
NonUniformOutlineInputBorder
Draws a rounded rectangle around an InputDecorator's container.
NonUniformRoundedRectangleBorder
A rectangular border with rounded corners.
NormalizedOverflowBox
A widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent.
Pad
Pad is an EdgeInsetsGeometry which is easy to type and remember. It can be used in all widgets that accept padding, like Container, Padding and Box.
RenderConstrainedNormalizedOverflowBox
RenderFitHorizontally
RenderRowSpacer
RowSpacer
RowSuper
For more info, see: https://pub.dartlang.org/packages/assorted_layout_widgets
SideBySide
The SideBySide widget disposes 2 widgets horizontally, while achieving a layout which is impossible for both the native Row and the RowSuper widgets.
TextOneLine
TextOneLine is a substitute for Text when maxLines is 1.
TimeBuilder
Very efficient timer, which rebuilds only when needed:
WrapSuper

Functions

showCupertinoDialogSuper<T>({required BuildContext context, required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, void onDismissed(T?)?}) Future<T?>
Displays an iOS-style dialog above the current contents of the app, with iOS-style entrance and exit animations, modal barrier color, and modal barrier behavior (by default, the dialog is not dismissible with a tap on the barrier).
showDialogSuper<T>({required BuildContext context, required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, void onDismissed(T?)?}) Future<T?>
Displays a Material dialog above the current contents of the app, with Material entrance and exit animations, modal barrier color, and modal barrier behavior (dialog is dismissible with a tap on the barrier).

Typedefs

ButtonBuilder = Widget Function({required bool isPressed})
CountdownWidgetBuilder = Widget Function(BuildContext context, DateTime dateTime, int ticks, bool isFinished, {required int countdown})
IfRebuilds = bool Function({required DateTime currentTime, required DateTime? lastTime, required int ticks})
Return true if the widget should rebuild. Return false if it should not rebuild.
IsFinished = bool Function({required DateTime currentTime, required DateTime? lastTime, required int ticks})
Return true to end the timer. Returning true here will generate one last rebuild, and then stop.
MaskFunction = String? Function({required TextEditingValue newValue, required TextEditingValue oldValue})
TimerWidgetBuilder = Widget Function(BuildContext context, DateTime dateTime, int ticks, bool isFinished)