ResponsiveOnNullableWidget extension
Methods
-
marginAll(double margin)
→ Widget
-
Wrap this with Container Widget and sets
margin
with EdgeInsets.all().
-
marginCustom(EdgeInsets edgeInsets)
→ Widget
-
Wrap this with Container Widget and sets
margin
with given EdgeInsets.
-
marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0})
→ Widget
-
Wrap this with Container Widget and sets
margin
with EdgeInsets.only().
By default, all properties has 0
as value: top
, bottom
, left
and right
.
-
marginSymmetric({double horizontal = 0.0, double vertical = 0.0})
→ Widget
-
Wrap this with Container Widget and sets
margin
with EdgeInsets.symmetric()
.
By default, both horizontal
and vertical
properties has 0
as value.
-
paddingAll(double padding)
→ Widget
-
Wrap this with Padding Widget with EdgeInsets.all() attribute.
-
paddingOnly({double left = 0, double top = 0, double right = 0, double bottom = 0})
→ Widget
-
Wrap this with Padding Widget with EdgeInsets.only() attribute.
By default, all properties has
0
as value: top
, bottom
, left
and right
.
-
paddingSymmetric({double horizontal = 0, double vertical = 0})
→ Widget
-
Wrap this with Padding Widget with
EdgeInsets.symmetric()
attribute.
By default, both horizontal
and vertical
properties equals to 0
.
-
withAlign({Alignment alignment = Alignment.center})
→ Widget
-
Wraps this with Align. It receives as parameter only
Alignment alignment
.
A simple approach to align widgets.