Skip to content

Commit

Permalink
Updated file wallpaper_set_screen.dart
Browse files Browse the repository at this point in the history
RequestSizeOption from resize_fit to RESIZE_CENTRE_CROP because of error
 error • There's no constant named 'RESIZE_FIT' in 'RequestSizeOptions' • lib/pages/detailed_asset_view/widgets/wallpaper_set_screen.dart:53:62 • undefined_enum_constant
  • Loading branch information
Raviramnani1 committed Jul 30, 2024
1 parent 71356cf commit 3588291
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class _WallpaperScreenState extends State<_WallpaperScreen> {
downloading.value = true;
}, onDone: () async {
downloading.value = false;
await Wallpaper.lockScreen(options: RequestSizeOptions.RESIZE_FIT);
await Wallpaper.lockScreen(options: RequestSizeOptions.RESIZE_CENTRE_CROP);
done.value = true;
}, onError: (error) {
downloading.value = false;
Expand Down

0 comments on commit 3588291

Please sign in to comment.