pad 0.1.0 copy "pad: ^0.1.0" to clipboard
pad: ^0.1.0 copied to clipboard

outdated

Quick padding with a short syntax. Shortcuts for the classical Padding widget

Pad #

Quick padding for Flutter with a short syntax. Instead of:

const Padding(
   padding: EdgeInsets.all(10.0),
   child: Text("Foo")
)

You can use:

const PadAll(10.0, child: Text("Foo"))

Usage #

Directional padding #

const Pad(
   bottom: 10.0,
   top: 10.0,
   left: 10.0,
   right: 10.0,
   child: Text("Foo")
)

All parameters are optional

Pad vertical #

const PadVertical(10.0, child: Text("Foo"))

Pad horizontal #

const PadHorizontal(10.0, child: Text("Foo"))

Pad all #

const PadAll(10.0, child: Text("Foo"))

Pad from LTRB #

const PadLTRB(
   10.0,
   15.0,
   10.0,
   15.0,
   child: Text("Foo")
)
5
likes
0
pub points
54%
popularity

Publisher

unverified uploader

Quick padding with a short syntax. Shortcuts for the classical Padding widget

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, extra_pedantic, flutter, pedantic

More

Packages that depend on pad