assorted_layout_widgets 10.0.2 assorted_layout_widgets: ^10.0.2 copied to clipboard
A lot of widgets like ColumnSuper, RowSuper, FitHorizontally, Box, WrapSuper, TextOneLine, Delayed, Pad, ButtonBarSuper, NormalizedOverflowBox, showDialogSuper, and much more.
10.0.2 #
- Sponsored by MyText.ai
-
Removed
KeyboardDismiss
dependency ondart:io
to make it compatible with platform web. -
Now
CircleButton
can specifyhoverColor
(default is no color), andcursor
(the default isSystemMouseCursors.click
, but you can passnull
to set it asMouseCursor.defer
.
9.0.2 #
- Added
Pad.addValues
andPad.subtractValues
.
9.0.1 #
- Flutter 3.16.0 compatible.
8.0.5 #
- const WrapSuper.
8.0.4 #
- Removed deprecated
TextOneLineEllipsisWithFade
widget. Please useTextOneLine
instead.
7.0.1 #
- Fixed letter-spacing for TextOneLine, whe the style is defined inline.
7.0.0 #
-
Flutter 3.3.0 (Dart 2.18.0).
-
TextOneLineEllipsisWithFade
deprecated. Please useTextOneLine
instead.
6.1.1 #
KeyboardDismiss
.
6.0.0 #
- Flutter 3.0.
5.8.5 #
NonUniformOutlineInputBorder
andNonUniformRoundedRectangleBorder
widgets.
5.7.1 #
CaptureGestures
widget.
5.6.1 #
Button
andCircleButton
widgets.
5.5.0 #
SideBySide
widget.
5.4.1 #
MaskFunctionTextInputFormatter
input formatter (forText
widgets).
5.3.0-dev0 #
ColumnSuper
parameter:removeChildrenWithNoHeight
. See this example.
5.2.1 #
GlobalValueKey
andGlobalStringKey
.
5.1.3 #
- Upgrade to Flutter 2.5.1
5.1.1 #
- Fixed alignment bug in
RowSuper
whenfill: true
andMainAxisSize.max
andAlignment.center
.
5.1.0 #
TimeBuilder
widget.
5.0.3 #
-
Box.copyWith()
method. -
Now
Box
can be changed by using theoperator +
. For example, to hide the box:Box(...) + false;
. To change the box color:Box(...) + Colors.green;
. To change the box padding:Box(...) + Pad(all: 10);
. To substitute the box child:Box(...) + Text('abc');
. To put a box inside of another:Box(...) + Box(...);
.
5.0.2 #
- Now
TextOneLine
is more similar to the nativeText
widget, in preparation for when https://github.com/flutter/flutter/issues/18761 is fixed. You probably won't notice the difference and may continue using it as usual.
5.0.1 #
-
showCupertinoDialogSuper
. -
The
onDismissed
callback parameter forshowDialogSuper
is called when the dialog is dismissed. That's still the case, but now that callback gets theresult
of the dialog, when the dialog is popped byNavigator.of(context).pop(result)
. That way you can differentiate between the dialog being dismissed by an Ok or a Cancel button, for example. Noteresult
isnull
when the dialog is dismissed by tapping the barrier or pressing BACK in Android. Example:showDialogSuper<int>( ... actions: [ ElevatedButton( onPressed: (){Navigator.pop(context, 1);}, child: const Text("OK"), ElevatedButton( onPressed: (){Navigator.pop(context, 2);}, child: const Text("CANCEL"), ] ... onDismissed: (int? result) { if (result == 1) print("Pressed the OK button."); else if (result == 2) print("Pressed the CANCEL button."); else if (result == null) print("Dismissed with BACK or tapping the barrier."); });
4.0.10 #
- Fixed bug in
WrapSuper
intrinsic height.
4.0.9 #
showDialogSuper
method is identical to the nativeshowDialog
, except that it lets you define a callback for when the dialog is dismissed.
4.0.8 #
- Fixed important bug in
FitHorizontally
widget (andRowSuper
when using thefitHorizontally
parameter).
4.0.7 #
NormalizedOverflowBox
widget.
4.0.5 #
WrapSuper.wrapFit
parameter.ButtonBarSuper
parameter.- New examples: WrapSuper WrapFit Example and ButtonBarSuper Example
4.0.2 #
Pad.copyWith()
.
4.0.1 #
- Fixed NNBD problem:
TextOneLine
as child of an intrinsic size widget.
4.0.0 #
- Nullsafety.
RowSuper
horizontal alignment now applied when there are noRowSpacer
s andMainAxisSize
ismax
.
3.0.1 #
-
Breaking change: The
Box
widget now has apadding
parameter. I recommend you use it with the newPad
class. For example:Box(padding: Pad(top: 4.0))
. ThePad
class solves the verbosity problem, and having apadding
parameter makesBox
more compatible withContainer
( rememberBox
is like aContainer
which can be madeconst
, so it's best if their parameters are not too different). -
The debugging constructors of the
Box
widget are now marked as deprecated so that you don't forget to remove them (they are not really deprecated).
2.0.1 #
Pad
class.
2.0.0 #
- Support for Flutter 1.22.
1.3.6 #
- Docs improvement.
- Fixed edge case for
RowSuper
.
1.3.4 #
- Docs improvement.
1.3.3 #
- RowSuper:
fill
parameter.
1.3.2 #
Delayed
widget.
1.2.0 #
- Breaking Change:
ColumnSuper
width is now the max intrinsic width of its children, just like a regularColumn
. To restore old behavior:Container(width: double.infinity, child: ColumnSuper(...))
. - Breaking Change:
RowSuper
height is now the max intrinsic height of its children, just like a regularRow
. To restore old behavior:Container(height: double.infinity, child: RowSuper(...))
. - New examples: ColumnSuper Playground and RowSuper Playground.
1.1.4 #
- Fix:
ColumnSuper
intrinsic height, andRowSuper
intrinsic width.
1.1.3 #
- Fix:
WrapSuper
minimum raggedness algorithm now uses the correct JavaScript'sNumber.MAX_SAFE_INTEGER
. - Fix: Divide by zero conditions.
1.1.1 #
- Docs improvement.
1.1.0 #
- Upgraded to Flutter 1.17.
1.0.18 #
WrapSuper
.
1.0.15 #
- Box now has
vertical
andhorizontal
as constructor parameters.
1.0.14 #
TextOneLine
that fixes https://github.com/flutter/flutter/issues/18761.
1.0.13 #
- Alignment fix.
1.0.12 #
Box
.
1.0.10 #
FitHorizontally
widget.RowSpacer
widget.
1.0.0 #
RowSuper
andColumnSuper
widgets.