diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index e41f38444..891d32c0f 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -58,19 +58,19 @@ updates: schedule: interval: "daily" - package-ecosystem: "pub" - directory: "desktop_photo_search/fluent_ui/" + directory: "deeplink_store_example/" schedule: interval: "daily" - package-ecosystem: "pub" - directory: "desktop_photo_search/material/" + directory: "desktop_photo_search/fluent_ui/" schedule: interval: "daily" - package-ecosystem: "pub" - directory: "experimental/context_menus/" + directory: "desktop_photo_search/material/" schedule: interval: "daily" - package-ecosystem: "pub" - directory: "experimental/element_embedding_demo/" + directory: "experimental/context_menus/" schedule: interval: "daily" - package-ecosystem: "pub" @@ -161,6 +161,10 @@ updates: directory: "navigation_and_routing/" schedule: interval: "daily" + - package-ecosystem: "pub" + directory: "next_gen_ui_demo/" + schedule: + interval: "daily" - package-ecosystem: "pub" directory: "place_tracker/" schedule: @@ -214,11 +218,11 @@ updates: schedule: interval: "daily" - package-ecosystem: "pub" - directory: "web_embedding/element_embedding_demo" + directory: "web_embedding/element_embedding_demo/" schedule: interval: "daily" - package-ecosystem: "pub" - directory: "web_embedding/ng-flutter/flutter" + directory: "web_embedding/ng-flutter/flutter/" schedule: interval: "daily" - package-ecosystem: "npm" diff --git a/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart b/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart index 8461f97f0..558d50180 100644 --- a/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart +++ b/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart @@ -48,7 +48,7 @@ class _UnsplashSearchContentState extends State { ? PhotoDetails( photo: photoSearchModel.selectedPhoto!, onPhotoSave: (photo) async { - final path = await getSavePath( + final saveLocation = await getSaveLocation( suggestedName: '${photo.id}.jpg', acceptedTypeGroups: [ const XTypeGroup( @@ -58,12 +58,12 @@ class _UnsplashSearchContentState extends State { ), ], ); - if (path != null) { + if (saveLocation != null) { final fileData = await photoSearchModel.download(photo: photo); final photoFile = XFile.fromData(fileData, mimeType: 'image/jpeg'); - await photoFile.saveTo(path); + await photoFile.saveTo(saveLocation.path); } }, ) diff --git a/desktop_photo_search/material/lib/src/widgets/unsplash_search_content.dart b/desktop_photo_search/material/lib/src/widgets/unsplash_search_content.dart index aab3deaef..9c6fb2f1d 100644 --- a/desktop_photo_search/material/lib/src/widgets/unsplash_search_content.dart +++ b/desktop_photo_search/material/lib/src/widgets/unsplash_search_content.dart @@ -50,7 +50,7 @@ class _UnsplashSearchContentState extends State { ? PhotoDetails( photo: photoSearchModel.selectedPhoto!, onPhotoSave: (photo) async { - final path = await getSavePath( + final saveLocation = await getSaveLocation( suggestedName: '${photo.id}.jpg', acceptedTypeGroups: [ const XTypeGroup( @@ -60,12 +60,12 @@ class _UnsplashSearchContentState extends State { ), ], ); - if (path != null) { + if (saveLocation != null) { final fileData = await photoSearchModel.download(photo: photo); final photoFile = XFile.fromData(fileData, mimeType: 'image/jpeg'); - await photoFile.saveTo(path); + await photoFile.saveTo(saveLocation.path); } }, ) diff --git a/experimental/linting_tool/lib/model/profiles_store.dart b/experimental/linting_tool/lib/model/profiles_store.dart index 67aa04adb..e19edff9b 100644 --- a/experimental/linting_tool/lib/model/profiles_store.dart +++ b/experimental/linting_tool/lib/model/profiles_store.dart @@ -140,7 +140,7 @@ class ProfilesStore extends ChangeNotifier { const name = 'analysis_options.yaml'; /// Get file path using file picker. - final savePath = await file_selector.getSavePath( + final saveLocation = await file_selector.getSaveLocation( suggestedName: name, ); @@ -148,8 +148,8 @@ class ProfilesStore extends ChangeNotifier { final file = file_selector.XFile.fromData(data, name: name); /// Save file to disk if path was provided. - if (savePath != null) { - await file.saveTo(savePath); + if (saveLocation != null) { + await file.saveTo(saveLocation.path); return true; }