MVP #141

Merged
flixcoo merged 705 commits from development into main 2026-01-09 12:55:50 +00:00
Showing only changes of commit 28ed22ce73 - Show all commits

View File

@@ -31,76 +31,73 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Scaffold(
decoration: BoxDecoration(color: CustomTheme.backgroundColor), appBar: AppBar(
child: SafeArea( centerTitle: true,
minimum: EdgeInsets.symmetric(vertical: 30), title: Text(
child: Scaffold( _currentTabTitle(),
appBar: AppBar( style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
centerTitle: true, ),
title: Text( backgroundColor: CustomTheme.backgroundColor,
_currentTabTitle(), scrolledUnderElevation: 0,
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold), actions: [
IconButton(
onPressed: () => Navigator.push(
context,
MaterialPageRoute(builder: (_) => const SettingsView()),
), ),
backgroundColor: CustomTheme.backgroundColor, icon: const Icon(Icons.settings),
scrolledUnderElevation: 0,
actions: [
IconButton(
onPressed: () => Navigator.push(
context,
MaterialPageRoute(builder: (_) => const SettingsView()),
),
icon: const Icon(Icons.settings),
),
],
elevation: 0,
), ),
backgroundColor: CustomTheme.backgroundColor, ],
body: tabs[currentIndex], elevation: 0,
extendBody: true, ),
bottomNavigationBar: Padding( backgroundColor: CustomTheme.backgroundColor,
padding: const EdgeInsets.symmetric(horizontal: 12.0), body: tabs[currentIndex],
child: Material( extendBody: true,
elevation: 10, bottomNavigationBar: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(24), borderRadius: BorderRadius.circular(24),
color: CustomTheme.primaryColor, color: CustomTheme.primaryColor,
child: ClipRRect( ),
borderRadius: BorderRadius.circular(24), child: ClipRRect(
child: SizedBox( borderRadius: BorderRadius.circular(24),
height: 60, child: SizedBox(
child: Row( height: 60,
mainAxisAlignment: MainAxisAlignment.spaceAround, child: Row(
children: <Widget>[ mainAxisAlignment: MainAxisAlignment.spaceAround,
NavbarItem( children: <Widget>[
index: 0, NavbarItem(
isSelected: currentIndex == 0, index: 0,
icon: Icons.home_rounded, isSelected: currentIndex == 0,
label: 'Home', icon: Icons.home_rounded,
onTabTapped: onTabTapped, label: 'Home',
), onTabTapped: onTabTapped,
NavbarItem( ),
index: 1, NavbarItem(
isSelected: currentIndex == 1, index: 1,
icon: Icons.gamepad_rounded, isSelected: currentIndex == 1,
label: 'Games', icon: Icons.gamepad_rounded,
onTabTapped: onTabTapped, label: 'Games',
), onTabTapped: onTabTapped,
NavbarItem( ),
index: 2, NavbarItem(
isSelected: currentIndex == 2, index: 2,
icon: Icons.group_rounded, isSelected: currentIndex == 2,
label: 'Groups', icon: Icons.group_rounded,
onTabTapped: onTabTapped, label: 'Groups',
), onTabTapped: onTabTapped,
NavbarItem( ),
index: 3, NavbarItem(
isSelected: currentIndex == 3, index: 3,
icon: Icons.bar_chart_rounded, isSelected: currentIndex == 3,
label: 'Stats', icon: Icons.bar_chart_rounded,
onTabTapped: onTabTapped, label: 'Stats',
), onTabTapped: onTabTapped,
], ),
), ],
), ),
), ),
), ),