Feat: Erstellt die Möglichkeit, Tasks als Hintergrundprozesse auszuführen
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:routemaster/routemaster.dart';
|
||||
|
||||
import 'Controller/background_task_controller.dart';
|
||||
import 'Services/navigation_service.dart';
|
||||
import 'Services/router_service.dart';
|
||||
import 'Services/theme_service.dart';
|
||||
@@ -9,6 +10,8 @@ import 'Services/theme_service.dart';
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
BackgroundTaskController();
|
||||
|
||||
runApp(
|
||||
MaterialApp.router(
|
||||
routerDelegate: RoutemasterDelegate(
|
||||
@@ -22,9 +25,7 @@ void main() {
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: const [
|
||||
Locale('de'),
|
||||
],
|
||||
supportedLocales: const [Locale('de')],
|
||||
|
||||
title: 'DragonLedger 🐉📒',
|
||||
theme: ThemeService.getLightTheme(),
|
||||
|
||||
Reference in New Issue
Block a user