chore: Update dependencies
This commit is contained in:
parent
2faaf35f0d
commit
b088461140
5 changed files with 22 additions and 22 deletions
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue