Simple Spacer
This Package is intended to make padding easier to write. (Tailwind css like)
Usage
The easiest way to use it is to write something like p-2.
Padding(
padding: p_2, //this means 2px padding on all sides
)
If you want to set horizontal or vertical padding.
Padding(
padding: px_2, //this means 2px padding on left and right
)
Padding(
padding: py_2, //this means 2px padding on top and bottom
)
In addition, if you want to add an asymmetric padding, you can use .add().
Padding(
padding: pl_2.add(pr_12), //this means 2px padding on left and 12px right.
)