mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Fix background isolates on Flutter 3.3
This commit is contained in:
parent
2990110007
commit
5884919c1b
4 changed files with 7 additions and 10 deletions
|
@ -56,6 +56,7 @@ void stopService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@visibleForTesting
|
@visibleForTesting
|
||||||
|
@pragma("vm:entry-point")
|
||||||
Future<void> serviceMain() async {
|
Future<void> serviceMain() async {
|
||||||
_Service._shouldRun.value = true;
|
_Service._shouldRun.value = true;
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
|
@ -109,6 +109,7 @@ class _IsolateMessage {
|
||||||
final Account account;
|
final Account account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pragma("vm:entry-point")
|
||||||
Future<JsonObj> _isolateMain(JsonObj messageJson) async {
|
Future<JsonObj> _isolateMain(JsonObj messageJson) async {
|
||||||
final message = _IsolateMessage.fromJson(messageJson);
|
final message = _IsolateMessage.fromJson(messageJson);
|
||||||
await app_init.init(app_init.InitIsolateType.flutterIsolate);
|
await app_init.init(app_init.InitIsolateType.flutterIsolate);
|
||||||
|
|
|
@ -507,12 +507,10 @@ packages:
|
||||||
flutter_isolate:
|
flutter_isolate:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
name: flutter_isolate
|
||||||
ref: "2.0.2-nc-photos-1"
|
url: "https://pub.dartlang.org"
|
||||||
resolved-ref: "8d8516b169860caba762baed43a7888798c5b7d7"
|
source: hosted
|
||||||
url: "https://gitlab.com/nc-photos/flutter_isolate.git"
|
version: "2.0.4"
|
||||||
source: git
|
|
||||||
version: "2.0.2"
|
|
||||||
flutter_keyboard_visibility:
|
flutter_keyboard_visibility:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -59,10 +59,7 @@ dependencies:
|
||||||
ref: v0.2.6-nc-photos-2
|
ref: v0.2.6-nc-photos-2
|
||||||
flutter_bloc: ^8.0.0
|
flutter_bloc: ^8.0.0
|
||||||
flutter_colorpicker: ^1.0.3
|
flutter_colorpicker: ^1.0.3
|
||||||
flutter_isolate:
|
flutter_isolate: ^2.0.4
|
||||||
git:
|
|
||||||
url: https://gitlab.com/nc-photos/flutter_isolate.git
|
|
||||||
ref: 2.0.2-nc-photos-1
|
|
||||||
flutter_map: ^1.1.1
|
flutter_map: ^1.1.1
|
||||||
flutter_staggered_grid_view:
|
flutter_staggered_grid_view:
|
||||||
git:
|
git:
|
||||||
|
|
Loading…
Reference in a new issue