padding function
Implementation
Widget padding(Widget widget, Style style) {
double r = (style.p ?? 0) + (style.px ?? 0) + (style.pr ?? 0);
double l = (style.p ?? 0) + (style.px ?? 0) + (style.pl ?? 0);
double t = (style.p ?? 0) + (style.py ?? 0) + (style.pt ?? 0);
double b = (style.p ?? 0) + (style.py ?? 0) + (style.pb ?? 0);
return Container(padding: EdgeInsets.fromLTRB(l, t, r, b), child: widget);
}