Implemented basic Fileviewing
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:bubble/bubble.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:jiffy/jiffy.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/talk/chat/getChatResponse.dart';
|
||||
import 'package:marianum_mobile/screen/pages/talk/chatMessage.dart';
|
||||
@ -123,17 +124,25 @@ class ChatBubble {
|
||||
showDialog(context: context, builder: (context) {
|
||||
return SimpleDialog(
|
||||
children: [
|
||||
ListTile(
|
||||
leading: Icon(Icons.copy),
|
||||
title: Text("Nachricht kopieren"),
|
||||
Visibility(
|
||||
visible: !message.containsFile && bubbleData.messageType == GetRoomResponseObjectMessageType.comment,
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.copy),
|
||||
title: const Text("Nachricht kopieren"),
|
||||
onTap: () => {
|
||||
Clipboard.setData(ClipboardData(text: bubbleData.message)),
|
||||
Navigator.of(context).pop(),
|
||||
},
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.person),
|
||||
leading: const Icon(Icons.person),
|
||||
title: Text("Zu '${bubbleData.actorDisplayName}' wechseln"),
|
||||
onTap: () => {},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.bug_report_outlined),
|
||||
title: Text("Debugdaten anzeigen"),
|
||||
leading: const Icon(Icons.bug_report_outlined),
|
||||
title: const Text("Debugdaten anzeigen"),
|
||||
onTap: () => JsonViewer.asDialog(context, bubbleData.toJson()),
|
||||
)
|
||||
],
|
||||
|
Reference in New Issue
Block a user