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
|
|
@ -37,7 +37,7 @@ class NewGroupController extends State<NewGroup> {
|
|||
void selectPhoto() async {
|
||||
final photo = await selectFiles(
|
||||
context,
|
||||
extensions: imageExtensions,
|
||||
type: FileSelectorType.images,
|
||||
allowMultiple: false,
|
||||
);
|
||||
final bytes = await photo.singleOrNull?.readAsBytes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue