apply static method
Applies padding to a widget using the resolved EdgeInsets
Implementation
static Widget apply(BuildContext context, TwStyle style, Widget child) {
final padding = resolve(context, style);
// If no padding is set, return the child as-is
if (padding == EdgeInsets.zero) {
return child;
}
// Apply padding using Padding widget
return Padding(
padding: padding,
child: child,
);
}