Compare commits

...

2 Commits

Author SHA1 Message Date
e629706264
start making the bottom bar 2025-04-08 21:04:09 +02:00
84bcd0bbcf
start making the *bottom* bar
Co-authored-by: Armand <4831c0@users.noreply.github.com>
2025-04-08 21:04:06 +02:00
2 changed files with 110 additions and 43 deletions

View File

@ -3,6 +3,7 @@ import 'dart:ui';
class Colors {
Color background;
Color accent;
Color accentSecondary;
Color primaryText;
Color card;
Color grade1;
@ -14,6 +15,7 @@ class Colors {
Colors({
required this.background,
required this.accent,
required this.accentSecondary,
required this.primaryText,
required this.card,
required this.grade1,
@ -29,6 +31,7 @@ class Colors {
final Colors defaultColors = Colors(
background: Color(0xFFFAFFF0),
accent: Color(0xFFA7DC22),
accentSecondary: Color(0xFF6E8F1B),
primaryText: Color(0xFF394C0A),
card: Color(0xFFF3FBDE),

View File

@ -4,6 +4,8 @@ import 'package:flutter/services.dart';
import 'package:flutter/foundation.dart';
import 'package:shake_gesture/shake_gesture.dart';
import '../debug/debug_screen.dart';
import 'package:majesticons_flutter/majesticons_flutter.dart';
import 'package:firka/ui/phone/model/colors.dart' as appcolors;
class HomeScreen extends StatefulWidget {
final AppInitialization data;
@ -83,6 +85,68 @@ class _HomeScreenState extends State<HomeScreen> {
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Column(
children: [
IconButton(
onPressed: () {
setState(() {
page = ActiveHomePage.home;
});
},
icon: page == ActiveHomePage.home
? Majesticon(Majesticon.homeSolid,
color:
appcolors.colors.accent)
.build(context)
: Majesticon(Majesticon.homeLine,
color: appcolors
.colors.accentSecondary)
.build(context)),
Text("Fasz mhh nyami")
],
),
IconButton(
onPressed: () {
setState(() {
page = ActiveHomePage.grades;
});
},
icon: page == ActiveHomePage.grades
? Majesticon(Majesticon.bookmarkSolid,
color: appcolors.colors.accent)
.build(context)
: Majesticon(Majesticon.bookmarkLine,
color: appcolors
.colors.accentSecondary)
.build(context)),
IconButton(
onPressed: () {
setState(() {
page = ActiveHomePage.timetable;
});
},
icon: page == ActiveHomePage.timetable
? Majesticon(Majesticon.calendarSolid,
color: appcolors.colors.accent)
.build(context)
: Majesticon(Majesticon.calendarLine,
color: appcolors
.colors.accentSecondary)
.build(context)),
IconButton(
onPressed: () {
setState(() {
page = ActiveHomePage.other;
});
},
icon: page == ActiveHomePage.other
? Majesticon(Majesticon.homeSolid,
color: appcolors.colors.accent)
.build(context)
: Majesticon(Majesticon.homeLine,
color: appcolors
.colors.accentSecondary)
.build(context)),
],
),
),