divbox 0.0.1

Flutter Android iOS web

A utility widget for padding and margin.

divbox #

A flutter widget that provides margin and padding utilities.
Inspired by ChakraUI styled props

Available arguments: #

  • child => Type: Widget REQUIRED
  • mx, my, px, py => Horizontal(X) and Vertical(Y) padding and margin => Type: double
  • ml, mt, mr, mb, pl, pt, pr, pb => Left, Top, Right, Bottom Margin and Padding => Type: double
  • m, p => Overall Margin and Padding (All 4 sides)

Individual values takes higher precedence over axis value.
Axis values take higher precedence over overall value.

MORE COMING SOON

Usage: #

DivBox(
  m: 45.0,
  mr: 80.0,
  mx: 1.0,
  child: DivBox(
    px: 12.0,
    py: 24.0,
    pt: 75.0,
    child: Text(
      'Dart',
      style: TextStyle(
        fontSize: 24.0,
      ),
    ),
  ),
);

See example

1
likes
90
pub points
24%
popularity

A utility widget for padding and margin.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mohanvish1999@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on divbox