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_EXACT because of error
 error • There's no constant named 'RESIZE_CENTRE_CROP' 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 3588291 commit adb0929
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_CENTRE_CROP);
await Wallpaper.lockScreen(options: RequestSizeOptions.RESIZE_EXACT);
done.value = true;
}, onError: (error) {
downloading.value = false;
Expand Down

0 comments on commit adb0929

Please sign in to comment.