Files
food_delivery_mobile/lib/feature/common/presentation/widgets/w_layout.dart
2025-11-01 11:31:37 +05:00

35 lines
674 B
Dart

import '../../../../food_delivery_client.dart';
class WLayout extends StatelessWidget {
const WLayout({
super.key,
this.bgColor,
this.bottom = true,
this.top = true,
this.left = true,
this.right = true,
required this.child,
});
final Color? bgColor;
final bool bottom;
final bool top;
final bool right;
final bool left;
final Widget child;
@override
Widget build(BuildContext context) {
return Container(
color: bgColor ?? context.theme.scaffoldBackgroundColor,
child: SafeArea(
top: top,
bottom: bottom,
right: right,
left: left,
child: child,
),
);
}
}