chore: Follow up pick files with file selector

This commit is contained in:
Krille 2024-10-04 10:04:09 +02:00
commit fe06f2efb3
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 36 additions and 25 deletions

View file

@ -34,7 +34,7 @@ class NewSpaceController extends State<NewSpace> {
void selectPhoto() async {
final photo = await selectFiles(
context,
extensions: imageExtensions,
type: FileSelectorType.images,
);
final bytes = await photo.firstOrNull?.readAsBytes();
setState(() {