From 2bf64c35ea9cb0582d2c724fcedd17fbdcf7ca63 Mon Sep 17 00:00:00 2001 From: Raatty Date: Sun, 22 Aug 2021 16:03:18 +1200 Subject: [PATCH] fix: wallpaper on linux --- lib/pages/settings_style.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/settings_style.dart b/lib/pages/settings_style.dart index dcb010bb..9530cfe5 100644 --- a/lib/pages/settings_style.dart +++ b/lib/pages/settings_style.dart @@ -4,7 +4,7 @@ import 'package:adaptive_theme/adaptive_theme.dart'; import 'package:fluffychat/config/app_config.dart'; import 'package:fluffychat/config/setting_keys.dart'; import 'package:flutter/material.dart'; -import 'package:image_picker/image_picker.dart'; +import 'package:file_picker_cross/file_picker_cross.dart'; import 'views/settings_style_view.dart'; import '../widgets/matrix.dart'; @@ -17,7 +17,7 @@ class SettingsStyle extends StatefulWidget { class SettingsStyleController extends State { void setWallpaperAction() async { final wallpaper = - await ImagePicker().pickImage(source: ImageSource.gallery); + await FilePickerCross.importFromStorage(type: FileTypeCross.image); if (wallpaper == null) return; Matrix.of(context).wallpaper = File(wallpaper.path); await Matrix.of(context)