migrated the breaker system to MarianumConnect and refactored the API response to a rule-based model with support for version-specific blocks using maxBuild.
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||
|
||||
import '../../../api/mhsl/breaker/get_breakers/get_breakers_response.dart';
|
||||
import '../../../api/marianumconnect/queries/get_breakers/get_breakers_response.dart';
|
||||
import '../../../routing/app_routes.dart';
|
||||
import '../../../view/pages/files/files.dart';
|
||||
import '../../../view/pages/grade_averages/grade_averages_view.dart';
|
||||
@@ -95,35 +95,35 @@ class AppModule {
|
||||
Modules.marianumMessage,
|
||||
name: 'Marianum Message',
|
||||
icon: () => Icon(Icons.newspaper),
|
||||
breakerArea: BreakerArea.more,
|
||||
breakerArea: BreakerArea.news,
|
||||
create: MarianumMessageListView.new,
|
||||
),
|
||||
Modules.roomPlan: AppModule(
|
||||
Modules.roomPlan,
|
||||
name: 'Raumplan',
|
||||
icon: () => Icon(Icons.location_pin),
|
||||
breakerArea: BreakerArea.more,
|
||||
breakerArea: BreakerArea.roomPlan,
|
||||
create: Roomplan.new,
|
||||
),
|
||||
Modules.gradeAveragesCalculator: AppModule(
|
||||
Modules.gradeAveragesCalculator,
|
||||
name: 'Notendurchschnittsrechner',
|
||||
icon: () => Icon(Icons.calculate),
|
||||
breakerArea: BreakerArea.more,
|
||||
breakerArea: BreakerArea.grades,
|
||||
create: GradeAveragesView.new,
|
||||
),
|
||||
Modules.holidays: AppModule(
|
||||
Modules.holidays,
|
||||
name: 'Schulferien',
|
||||
icon: () => Icon(Icons.beach_access_outlined),
|
||||
breakerArea: BreakerArea.more,
|
||||
breakerArea: BreakerArea.holidays,
|
||||
create: HolidaysView.new,
|
||||
),
|
||||
Modules.marianumDates: AppModule(
|
||||
Modules.marianumDates,
|
||||
name: 'Marianum Termine',
|
||||
icon: () => Icon(Icons.event_note),
|
||||
breakerArea: BreakerArea.more,
|
||||
breakerArea: BreakerArea.dates,
|
||||
create: MarianumDatesView.new,
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user