-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb39c01
commit e136d75
Showing
33 changed files
with
1,785 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (C) 2021 Yaroslav Pronin <[email protected]> | ||
// Copyright (C) 2021-2024 Yaroslav Pronin <[email protected]> | ||
// Copyright (C) 2021 Insurgo Inc. <[email protected]> | ||
// | ||
// This file is part of LibreTrack. | ||
|
@@ -19,11 +19,14 @@ | |
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/gestures.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
import 'package:libretrack/core/app_database_isolate_binder.dart'; | ||
import 'package:libretrack/core/crash_catcher/crash_catcher.dart'; | ||
import 'package:libretrack/core/crash_catcher/hook/flutter_crash_hook.dart'; | ||
import 'package:libretrack/core/notification_manager.dart'; | ||
import 'package:libretrack/core/settings/settings.dart'; | ||
import 'package:libretrack/platform/system_tray.dart'; | ||
import 'package:libretrack/ui/app_cubit.dart'; | ||
|
||
import 'core/tracking_scheduler.dart'; | ||
import 'core/work_manager/work_manager.dart'; | ||
|
@@ -46,9 +49,14 @@ Future<void> _main() async { | |
await getIt<TrackingScheduler>().init(); | ||
|
||
runApp( | ||
App( | ||
enableDevicePreview: false, | ||
navigatorKey: navigatorKey, | ||
BlocProvider( | ||
create: (context) => AppCubit( | ||
getIt<AppSettings>(), | ||
), | ||
child: App( | ||
enableDevicePreview: false, | ||
navigatorKey: navigatorKey, | ||
), | ||
), | ||
); | ||
} | ||
|
Oops, something went wrong.