import 'package:flutter/material.dart'; import '../../app/theme/app_colors.dart'; /// 5-tab bottom navigation bar per PRD ยง5.1. /// Uses Material Symbols outlined (inactive) and filled (active). class AppBottomNavBar extends StatelessWidget { const AppBottomNavBar({ super.key, required this.currentIndex, required this.onTap, }); final int currentIndex; final ValueChanged onTap; @override Widget build(BuildContext context) { return Container( decoration: BoxDecoration( color: Theme.of(context).bottomNavigationBarTheme.backgroundColor, border: Border( top: BorderSide( color: Theme.of(context).dividerColor, width: 0.5, ), ), ), child: SafeArea( child: Padding( padding: const EdgeInsets.only(bottom: 8), child: BottomNavigationBar( currentIndex: currentIndex, onTap: onTap, items: const [ BottomNavigationBarItem( icon: Icon(Icons.home_outlined), activeIcon: Icon(Icons.home), label: 'Beranda', ), BottomNavigationBarItem( icon: Icon(Icons.calendar_today_outlined), activeIcon: Icon(Icons.calendar_today), label: 'Jadwal', ), BottomNavigationBarItem( icon: Icon(Icons.rule_outlined), activeIcon: Icon(Icons.rule), label: 'Ibadah', ), BottomNavigationBarItem( icon: Icon(Icons.bar_chart_outlined), activeIcon: Icon(Icons.bar_chart), label: 'Laporan', ), BottomNavigationBarItem( icon: Icon(Icons.auto_fix_high_outlined), activeIcon: Icon(Icons.auto_fix_high), label: 'Alat', ), ], ), ), ), ); } }