chore: Follow up pick files with file selector
This commit is contained in:
parent
44bd4db774
commit
fe06f2efb3
8 changed files with 36 additions and 25 deletions
|
|
@ -25,7 +25,10 @@ class SettingsStyleController extends State<SettingsStyle> {
|
|||
|
||||
void setWallpaper() async {
|
||||
final client = Matrix.of(context).client;
|
||||
final picked = await selectFiles(context, extensions: imageExtensions);
|
||||
final picked = await selectFiles(
|
||||
context,
|
||||
type: FileSelectorType.images,
|
||||
);
|
||||
final pickedFile = picked.firstOrNull;
|
||||
if (pickedFile == null) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue