chore: switch image_picker back to upstream

https://github.com/flutter/plugins/pull/3194 has finally been merged.

Also update to non-deprecated pick* methods.
This commit is contained in:
Marcus Hoffmann 2021-08-10 14:01:15 +02:00
commit 875630278c
6 changed files with 12 additions and 17 deletions

View file

@ -16,7 +16,8 @@ class SettingsStyle extends StatefulWidget {
class SettingsStyleController extends State<SettingsStyle> {
void setWallpaperAction() async {
final wallpaper = await ImagePicker().getImage(source: ImageSource.gallery);
final wallpaper =
await ImagePicker().pickImage(source: ImageSource.gallery);
if (wallpaper == null) return;
Matrix.of(context).wallpaper = File(wallpaper.path);
await Matrix.of(context)