diff --git a/experimental/desktop_photo_search/lib/src/unsplash/unsplash.dart b/experimental/desktop_photo_search/lib/src/unsplash/unsplash.dart index a6d29c958..e628b71af 100644 --- a/experimental/desktop_photo_search/lib/src/unsplash/unsplash.dart +++ b/experimental/desktop_photo_search/lib/src/unsplash/unsplash.dart @@ -64,7 +64,7 @@ class Unsplash { dynamic body; try { - body = json.decode(response.body); + body = json.fuse(utf8).decode(response.bodyBytes); } catch (e) { throw UnsplashException('Invalid JSON received'); } diff --git a/experimental/desktop_photo_search/pubspec.lock b/experimental/desktop_photo_search/pubspec.lock index 04ab75420..cfe2e2677 100644 --- a/experimental/desktop_photo_search/pubspec.lock +++ b/experimental/desktop_photo_search/pubspec.lock @@ -175,7 +175,7 @@ packages: name: coverage url: "https://pub.dartlang.org" source: hosted - version: "0.14.1" + version: "0.14.2" crypto: dependency: transitive description: @@ -216,7 +216,7 @@ packages: description: path: "plugins/file_chooser" ref: HEAD - resolved-ref: "8ea9f1ce79f04e44bd6392f4155a014b0a7eb6e8" + resolved-ref: "85dde09b702a0cb1f5e1392d2f030bdc3d4e5be3" url: "https://github.com/google/flutter-desktop-embedding.git" source: git version: "0.2.0" @@ -345,7 +345,7 @@ packages: description: path: "plugins/menubar" ref: HEAD - resolved-ref: "8ea9f1ce79f04e44bd6392f4155a014b0a7eb6e8" + resolved-ref: "85dde09b702a0cb1f5e1392d2f030bdc3d4e5be3" url: "https://github.com/google/flutter-desktop-embedding.git" source: git version: "0.1.0" @@ -369,7 +369,7 @@ packages: name: msix url: "https://pub.dartlang.org" source: hosted - version: "0.1.0" + version: "0.1.2" nested: dependency: transitive description: diff --git a/experimental/desktop_photo_search/pubspec.yaml b/experimental/desktop_photo_search/pubspec.yaml index bfe2df0e7..82354340e 100644 --- a/experimental/desktop_photo_search/pubspec.yaml +++ b/experimental/desktop_photo_search/pubspec.yaml @@ -39,7 +39,7 @@ dev_dependencies: build_runner: ^1.7.2 built_value_generator: ^7.0.0 grinder: ^0.8.3 - msix: ^0.1.0 + msix: ^0.1.2 source_gen: ^0.9.4 test: ^1.9.4 tuneup: ^0.3.6 @@ -48,8 +48,8 @@ flutter: uses-material-design: true msix_config: - display_name: Photo Search - publisher_name: Flutter + display_name: Flutter Desktop Photo Search + publisher_name: flutter.dev identity_name: Google.Flutter.PhotoSearch msix_version: 1.0.0.0 # certificate_subject: CN=MyName