Compare commits
2 Commits
4392f06e13
...
e629706264
Author | SHA1 | Date | |
---|---|---|---|
e629706264 | |||
84bcd0bbcf |
@ -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),
|
||||
|
||||
|
@ -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;
|
||||
@ -43,58 +45,120 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
systemNavigationBarColor: Color(0xFFDAE4F7),
|
||||
));
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Home'),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SafeArea(
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: Stack(
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
appBar: AppBar(
|
||||
title: const Text('Home'),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SafeArea(
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: Stack(
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text("Top Text"),
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.bottomCenter,
|
||||
end: Alignment.topCenter,
|
||||
colors: [
|
||||
Colors.white,
|
||||
Colors.white.withOpacity(0.0),
|
||||
],
|
||||
stops: const [0.0, 1.0],
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text("Top Text"),
|
||||
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)),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.bottomCenter,
|
||||
end: Alignment.topCenter,
|
||||
colors: [
|
||||
Colors.white,
|
||||
Colors.white.withOpacity(0.0),
|
||||
],
|
||||
stops: const [0.0, 1.0],
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user