한번 좆되서 다시 돌림

This commit is contained in:
girinb
2025-07-10 18:31:19 +09:00
parent 437330088a
commit ae99bd661d
7 changed files with 291 additions and 274 deletions

View File

@@ -0,0 +1,56 @@
import 'package:flutter/material.dart';
class CustomBottomNavBar extends StatelessWidget {
final int currentIndex;
final Function(int) onTap;
const CustomBottomNavBar({
super.key,
required this.currentIndex,
required this.onTap,
});
@override
Widget build(BuildContext context) {
const double customBottomNavHeight = 94.0;
const double customBottomNavIconSize = 22.0;
const double customBottomNavSelectedFontSize = 10.0;
const double customBottomNavUnselectedFontSize = 8.0;
return SizedBox(
height: customBottomNavHeight,
child: BottomNavigationBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.home_filled),
label: 'Home',
),
BottomNavigationBarItem(
icon: Icon(Icons.calendar_today_outlined),
label: 'Plan',
),
BottomNavigationBarItem(
icon: Icon(Icons.bar_chart_outlined),
label: 'Statistics',
),
BottomNavigationBarItem(
icon: Icon(Icons.work_outline),
label: 'Jobs',
),
BottomNavigationBarItem(
icon: Icon(Icons.more_horiz_outlined),
label: 'More',
),
],
currentIndex: currentIndex,
unselectedItemColor: Colors.blue,
onTap: onTap,
type: BottomNavigationBarType.fixed,
iconSize: customBottomNavIconSize,
selectedFontSize: customBottomNavSelectedFontSize,
unselectedFontSize: customBottomNavUnselectedFontSize,
),
);
}
}