Skip to content

Commit c792469

Browse files
create SymmetricPadding
1 parent eb85387 commit c792469

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
part of '../../../../core/widgets/adaptive/padding/adaptive_padding.dart';
2+
3+
class SymmetricPadding extends StatelessWidget {
4+
const SymmetricPadding({
5+
required this.horizontal,
6+
required this.vertical,
7+
required this.child,
8+
super.key,
9+
});
10+
final double horizontal;
11+
final double vertical;
12+
final Widget child;
13+
@override
14+
Widget build(BuildContext context) {
15+
return _RPadding(
16+
padding:
17+
REdgeInsets.symmetric(horizontal: horizontal, vertical: vertical),
18+
child: child);
19+
}
20+
}

0 commit comments

Comments
 (0)