menu
flutter_custom_utils package
documentation
util/widget_utils.dart
CustomWidgetMargin extension
CustomWidgetMargin extension
dark_mode
light_mode
CustomWidgetMargin
extension
A Dart extension for adding margin to a Widget using
Container
.
on
Widget
Properties
cMargZero
→
Widget
Adds zero margin to the widget.
no setter
Methods
cMargAll
(
double
margin
)
→
Widget
Adds margin to all sides of the widget.
cMargOnly
(
{
double
l
=
0.0
,
double
t
=
0.0
,
double
r
=
0.0
,
double
b
=
0.0
})
→
Widget
Adds margin to specific sides of the widget.
cMargSymmetric
(
{
double
h
=
0.0
,
double
v
=
0.0
})
→
Widget
Adds symmetric margin to the widget.
flutter_custom_utils package
documentation
util/widget_utils
CustomWidgetMargin extension
widget_utils library