Files
food_delivery_mobile/lib/feature/common/presentation/widgets/w_layout.dart
jahongireshonqulov 077ea23416 feat: splash page done
2025-10-31 12:29:30 +05:00

25 lines
515 B
Dart

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