import 'package:flutter/material.dart'; class AppBottomNav extends StatelessWidget { final int currentIndex; final ValueChanged onTap; const AppBottomNav({ super.key, required this.currentIndex, required this.onTap, }); @override Widget build(BuildContext context) { return BottomNavigationBar( type: BottomNavigationBarType.fixed, backgroundColor: Colors.white, selectedItemColor: const Color(0xFF10B981), unselectedItemColor: Colors.black54, currentIndex: currentIndex, onTap: onTap, items: const [ BottomNavigationBarItem(icon: Icon(Icons.home_rounded), label: 'Home'), BottomNavigationBarItem( icon: Icon(Icons.event_note_rounded), label: 'Lezioni', ), BottomNavigationBarItem( icon: Icon(Icons.person_rounded), label: 'Account', ), BottomNavigationBarItem( icon: Icon(Icons.self_improvement_rounded), label: 'Meditazione', ), ], ); } }