refactor: File selector just use default FileType

and remove not working zip selector
This commit is contained in:
Christian Kußowski 2025-12-06 09:34:17 +01:00
commit 53af09227f
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
7 changed files with 18 additions and 116 deletions

View file

@ -2,6 +2,7 @@ import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:file_picker/file_picker.dart';
import 'package:go_router/go_router.dart';
import 'package:matrix/matrix.dart' as sdk;
import 'package:matrix/matrix.dart';
@ -49,7 +50,7 @@ class NewGroupController extends State<NewGroup> {
void selectPhoto() async {
final photo = await selectFiles(
context,
type: FileSelectorType.images,
type: FileType.image,
allowMultiple: false,
);
final bytes = await photo.singleOrNull?.readAsBytes();