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
|
|
@ -135,7 +135,10 @@ class SettingsController extends State<Settings> {
|
|||
name: result.path,
|
||||
);
|
||||
} else {
|
||||
final result = await selectFiles(context, extensions: imageExtensions);
|
||||
final result = await selectFiles(
|
||||
context,
|
||||
type: FileSelectorType.images,
|
||||
);
|
||||
final pickedFile = result.firstOrNull;
|
||||
if (pickedFile == null) return;
|
||||
file = MatrixFile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue