import 'package:flutter/material.dart'; import '../theme/app_theme.dart'; class BottomNavBar extends StatelessWidget { final int selectedIndex; final ValueChanged onItemTapped; final List items; const BottomNavBar({ super.key, required this.selectedIndex, required this.onItemTapped, required this.items, }); @override Widget build(BuildContext context) { // Paint the gesture-bar strip below the nav too (edge-to-edge since targetSdk 35), // otherwise the target background color shows through as a thin line. return ColoredBox( color: AppTheme.bar, child: SafeArea( top: false, child: SizedBox( height: 80, child: BottomNavigationBar( backgroundColor: AppTheme.bar, currentIndex: selectedIndex, onTap: onItemTapped, showSelectedLabels: true, showUnselectedLabels: true, type: BottomNavigationBarType.fixed, selectedFontSize: 12, unselectedFontSize: 12, selectedItemColor: Colors.white, unselectedItemColor: Colors.white70, items: items, ), ), ), ); } }