Quick padding for Flutter with a short syntax. Instead of:
const Padding(padding: EdgeInsets.only(top: 10.0))You can use:
const PadTop(10.0)const Pad(
bottom: 10.0,
top: 10.0,
left: 10.0,
right: 10.0,
child: Text("Foo")
)All parameters are optional
const PadLeft(10.0, child: Text("Foo"))const PadRight(10.0, child: Text("Foo"))const PadTop(10.0, child: Text("Foo"))const PadBottom(10.0, child: Text("Foo"))const PadHorizontal(10.0, child: Text("Foo"))const PadVertical(10.0, child: Text("Foo"))const PadAll(10.0, child: Text("Foo"))const PadLTRB(
10.0,
15.0,
10.0,
15.0,
child: Text("Foo")
)