PaddingWrapper.horizontal constructor
Factory constructor for horizontal padding only.
Applies padding to the left and right sides while leaving the top and bottom unpadded.
Example usage:
PaddingWrapper.horizontal(
horizontal: 25.0,
child: Text('Horizontally Padded Text'),
);
Implementation
factory PaddingWrapper.horizontal({
required Widget child,
double horizontal = 16.0,
}) {
return PaddingWrapper(
padding: EdgeInsets.symmetric(horizontal: horizontal),
child: child,
);
}