update grade averages UI and enable devtools extensions
This commit is contained in:
@@ -1 +1,4 @@
|
|||||||
extensions:
|
extensions:
|
||||||
|
- hive_ce: true
|
||||||
|
- shared_preferences: true
|
||||||
|
- provider: true
|
||||||
@@ -51,7 +51,7 @@ class GradeAveragesView extends StatelessWidget {
|
|||||||
color: Theme.of(context).colorScheme.onSurface
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
),
|
),
|
||||||
const SizedBox(width: 15),
|
const SizedBox(width: 15),
|
||||||
Text(isMiddleSchool ? 'Notensystem' : 'Punktesystem'),
|
Text(isMiddleSchool ? 'Realschule' : 'Oberstufe'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)).toList(),
|
)).toList(),
|
||||||
@@ -80,11 +80,19 @@ class GradeAveragesView extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 30),
|
const SizedBox(height: 30),
|
||||||
Text(bloc.average().toStringAsFixed(2), style: const TextStyle(fontSize: 30, fontWeight: FontWeight.bold)),
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Text('Ø', style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold)),
|
||||||
|
SizedBox(width: 5),
|
||||||
|
Text(bloc.average().toStringAsFixed(2), style: const TextStyle(fontSize: 30, fontWeight: FontWeight.bold))
|
||||||
|
],
|
||||||
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
Text(bloc.isMiddleSchool() ? 'Wähle unten die Anzahl deiner jeweiligen Noten aus' : 'Wähle unten die Anzahl deiner jeweiligen Punkte aus'),
|
Text(bloc.isMiddleSchool() ? 'Wähle die Anzahl deiner jeweiligen Noten aus' : 'Wähle die Anzahl deiner jeweiligen Punkte aus'),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
const Expanded(
|
const Expanded(
|
||||||
child: GradeAveragesListView()
|
child: GradeAveragesListView()
|
||||||
|
|||||||
Reference in New Issue
Block a user