chore: Update dependencies

This commit is contained in:
Dependency Update Bot 2021-12-27 08:05:16 +00:00 committed by Christian Pauly
commit b088461140
5 changed files with 22 additions and 22 deletions

View file

@ -67,16 +67,15 @@ class ChatController extends State<Chat> {
void onDragExited(_) => setState(() => dragging = false);
void onDragDone(DropDoneDetails details) async {
setState(() => dragging = false);
for (final url in details.urls) {
final file = File.fromUri(url);
final bytes = await file.readAsBytes();
for (final xfile in details.files) {
final bytes = await xfile.readAsBytes();
await showDialog(
context: context,
useRootNavigator: false,
builder: (c) => SendFileDialog(
file: MatrixFile(
bytes: bytes,
name: file.path.split('/').last,
name: xfile.name,
).detectFileType,
room: room,
),