Describe the bug
Everything works fine when I set up static images(jpg/png) on MIUI14,but when i use liveWallpaper ,both the lock screen and home screen changed back to the default wallpaper, and show toast successfully.
This may be a problem with MIUI itself, as I am still testing on Samsung and Huawei phones, and they are normal.
I want to know if there is a way to catch this exception and handle it.
sorry,my english not good,thank you watch this.
code

Screenshots


Flutter:
Dart:
Additional context
phone: xiaomi 10
android version Android 13
MIUI 14.
Describe the bug
Everything works fine when I set up static images(jpg/png) on MIUI14,but when i use liveWallpaper ,both the lock screen and home screen changed back to the default wallpaper, and show toast successfully.
This may be a problem with MIUI itself, as I am still testing on Samsung and Huawei phones, and they are normal.
I want to know if there is a way to catch this exception and handle it.
sorry,my english not good,thank you watch this.
code

Screenshots


Flutter:
Dart:
Additional context
phone: xiaomi 10
android version Android 13
MIUI 14.