added controllers to context
This commit is contained in:
@@ -4,6 +4,8 @@ import 'model/repositories/local_repository.dart';
|
||||
import 'pages/task_edit_page.dart';
|
||||
import 'pages/task_overview_page.dart';
|
||||
import 'service/controller_scope.dart';
|
||||
import 'service/controllers/alarm_controller.dart';
|
||||
import 'service/controllers/location_controller.dart';
|
||||
import 'service/controllers/task_controller.dart';
|
||||
|
||||
void main() async {
|
||||
@@ -13,9 +15,15 @@ void main() async {
|
||||
|
||||
runApp(
|
||||
ControllerScope(
|
||||
controller: LocationController(repository),
|
||||
child: ControllerScope(
|
||||
controller: AlarmController(repository),
|
||||
child: ControllerScope(
|
||||
controller: TaskController(repository),
|
||||
child: const MainApp(),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user