From 2d80e87022ac40b1b92e9c60df3f9d9387b82bc6 Mon Sep 17 00:00:00 2001 From: CodeDoctor Date: Thu, 9 Jun 2022 22:10:14 +0200 Subject: [PATCH] Fix migration --- app/lib/models/converter.dart | 2 +- app/pubspec.lock | 14 ++++++++++++++ app/pubspec.yaml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/lib/models/converter.dart b/app/lib/models/converter.dart index 272bfd6340b1..074e6510d769 100644 --- a/app/lib/models/converter.dart +++ b/app/lib/models/converter.dart @@ -31,7 +31,7 @@ class DocumentJsonConverter extends JsonConverter { map['type'] = 'pathEraser'; } return map; - })).where((map) => map['type'] != 'image'); + })).where((map) => map['type'] != 'image').toList(); json['content'] = List.from((json['content'] as List).map((e) { var map = Map.from(e); if (map['type'] == 'paint') { diff --git a/app/pubspec.lock b/app/pubspec.lock index 9e884fafebc6..cc80b2709c52 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -126,6 +126,20 @@ packages: name: camera url: "https://pub.dartlang.org" source: hosted + version: "0.9.8" + camera_android: + dependency: transitive + description: + name: camera_android + url: "https://pub.dartlang.org" + source: hosted + version: "0.9.7+1" + camera_avfoundation: + dependency: transitive + description: + name: camera_avfoundation + url: "https://pub.dartlang.org" + source: hosted version: "0.9.7+1" camera_platform_interface: dependency: transitive diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 726637b681d0..b3052a2157d8 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: xml: ^6.0.1 collection: ^1.16.0 bloc_concurrency: ^0.2.0 - camera: ^0.9.7+1 + camera: ^0.9.8 camera_windows: ^0.1.0+2 window_manager: ^0.2.5 flex_color_scheme: ^5.0.1