import 'package:flutter/material.dart'; import 'bottom_nav.dart'; class AppLayout extends StatelessWidget { final Widget child; final bool showBottomNav; const AppLayout({super.key, required this.child, this.showBottomNav = true}); @override Widget build(BuildContext context) { return Scaffold( body: child, bottomNavigationBar: showBottomNav ? const BottomNav() : null, ); } }