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 e5ddb7386..8461f97f0 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 @@ -51,7 +51,7 @@ class _UnsplashSearchContentState extends State { final path = await getSavePath( suggestedName: '${photo.id}.jpg', acceptedTypeGroups: [ - XTypeGroup( + const XTypeGroup( label: 'JPG', extensions: ['jpg'], mimeTypes: ['image/jpeg'], 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 7d244b876..aab3deaef 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 @@ -53,7 +53,7 @@ class _UnsplashSearchContentState extends State { final path = await getSavePath( suggestedName: '${photo.id}.jpg', acceptedTypeGroups: [ - XTypeGroup( + const XTypeGroup( label: 'JPG', extensions: ['jpg'], mimeTypes: ['image/jpeg'],