finish new bottombar (thats me)

This commit is contained in:
Zypherift 2025-04-08 21:56:03 +02:00
parent 90ecdd7fcb
commit cfecaf4db5
Signed by: zypherift
GPG Key ID: A1D1E0F07D82A207

View File

@ -78,81 +78,176 @@ class _HomeScreenState extends State<HomeScreen> {
stops: const [0.0, 1.0], stops: const [0.0, 1.0],
), ),
), ),
width: MediaQuery.of(context).size.width,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 55, vertical: 15),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Padding( // Home Button
padding: const EdgeInsets.all(8.0), Expanded(
child: Row( child: GestureDetector(
children: [ behavior: HitTestBehavior.opaque,
Column( onTap: () {
children: [
IconButton(
onPressed: () {
setState(() { setState(() {
page = ActiveHomePage.home; page = ActiveHomePage.home;
}); });
}, },
icon: page == ActiveHomePage.home child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
page == ActiveHomePage.home
? Majesticon(Majesticon.homeSolid, ? Majesticon(Majesticon.homeSolid,
color: color: appcolors.colors.accent,
appcolors.colors.accent) size: 24)
.build(context) .build(context)
: Majesticon(Majesticon.homeLine, : Majesticon(Majesticon.homeLine,
color: appcolors color: appcolors.colors.accentSecondary,
.colors.accentSecondary) size: 24)
.build(context)), .build(context),
Text("Fasz mhh nyami") const SizedBox(height: 4),
Text(
'Kezdőlap',
style: TextStyle(
color: appcolors.colors.primaryText,
fontSize: 13,
fontFamily: 'Figtree',
fontVariations: const [
FontVariation('wght', 640),
], ],
), ),
IconButton( ),
onPressed: () { ],
),
),
),
),
// Grades Button
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
setState(() { setState(() {
page = ActiveHomePage.grades; page = ActiveHomePage.grades;
}); });
}, },
icon: page == ActiveHomePage.grades child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
page == ActiveHomePage.grades
? Majesticon(Majesticon.bookmarkSolid, ? Majesticon(Majesticon.bookmarkSolid,
color: appcolors.colors.accent) color: appcolors.colors.accent,
size: 24)
.build(context) .build(context)
: Majesticon(Majesticon.bookmarkLine, : Majesticon(Majesticon.bookmarkLine,
color: appcolors color: appcolors.colors.accentSecondary,
.colors.accentSecondary) size: 24)
.build(context)), .build(context),
IconButton( const SizedBox(height: 4),
onPressed: () { Text(
'Jegyek',
style: TextStyle(
color: appcolors.colors.primaryText,
fontSize: 13,
fontFamily: 'Figtree',
fontVariations: const [
FontVariation('wght', 640),
],
),
),
],
),
),
),
),
// Timetable Button
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
setState(() { setState(() {
page = ActiveHomePage.timetable; page = ActiveHomePage.timetable;
}); });
}, },
icon: page == ActiveHomePage.timetable child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
page == ActiveHomePage.timetable
? Majesticon(Majesticon.calendarSolid, ? Majesticon(Majesticon.calendarSolid,
color: appcolors.colors.accent) color: appcolors.colors.accent,
size: 24)
.build(context) .build(context)
: Majesticon(Majesticon.calendarLine, : Majesticon(Majesticon.calendarLine,
color: appcolors color: appcolors.colors.accentSecondary,
.colors.accentSecondary) size: 24)
.build(context)), .build(context),
IconButton( const SizedBox(height: 4),
onPressed: () { Text(
'Órarend',
style: TextStyle(
color: appcolors.colors.primaryText,
fontSize: 13,
fontFamily: 'Figtree',
fontVariations: const [
FontVariation('wght', 640),
],
),
),
],
),
),
),
),
// More Button
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
setState(() { setState(() {
page = ActiveHomePage.other; page = ActiveHomePage.other;
}); });
}, },
icon: page == ActiveHomePage.other child: Padding(
? Majesticon(Majesticon.homeSolid, padding: const EdgeInsets.symmetric(vertical: 8.0),
color: appcolors.colors.accent) child: Column(
mainAxisSize: MainAxisSize.min,
children: [
page == ActiveHomePage.other
? Majesticon(Majesticon.globeEarthSolid,
color: appcolors.colors.accent,
size: 24)
.build(context) .build(context)
: Majesticon(Majesticon.homeLine, : Majesticon(Majesticon.globeEarthLine,
color: appcolors color: appcolors.colors.accentSecondary,
.colors.accentSecondary) size: 24)
.build(context)), .build(context),
const SizedBox(height: 4),
Text(
'Több',
style: TextStyle(
color: appcolors.colors.primaryText,
fontSize: 13,
fontFamily: 'Figtree',
fontVariations: const [
FontVariation('wght', 640),
], ],
), ),
), ),
], ],
), ),
), ),
),
),
],
),
),
),
], ],
), ),
], ],