Hide debug-viewers throughout the app when debug-mode is not enabled
This commit is contained in:
@ -8,7 +8,7 @@ import 'package:jiffy/jiffy.dart';
|
||||
import '../../../api/marianumcloud/talk/chat/getChatResponse.dart';
|
||||
import '../../../api/marianumcloud/talk/room/getRoomResponse.dart';
|
||||
import '../../../theming/appTheme.dart';
|
||||
import '../../settings/debug/jsonViewer.dart';
|
||||
import '../../../widget/debug/debugTile.dart';
|
||||
import '../files/fileElement.dart';
|
||||
import 'chatMessage.dart';
|
||||
|
||||
@ -30,11 +30,6 @@ class ChatBubble extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _ChatBubbleState extends State<ChatBubble> {
|
||||
// late BubbleStyle styleSystem;
|
||||
// late BubbleStyle Function(bool) styleRemote;
|
||||
// late BubbleStyle Function(bool) styleSelf;
|
||||
|
||||
|
||||
BubbleStyle getSystemStyle() {
|
||||
return BubbleStyle(
|
||||
color: AppTheme.isDarkMode(context) ? const Color(0xff182229) : Colors.white,
|
||||
@ -189,11 +184,7 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
onTap: () => {},
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.bug_report_outlined),
|
||||
title: const Text("Debugdaten anzeigen"),
|
||||
onTap: () => JsonViewer.asDialog(context, widget.bubbleData.toJson()),
|
||||
)
|
||||
DebugTile(widget.bubbleData.toJson()).asTile(context),
|
||||
],
|
||||
);
|
||||
});
|
||||
|
@ -10,6 +10,7 @@ import '../../../api/marianumcloud/talk/setFavorite/setFavorite.dart';
|
||||
import '../../../api/marianumcloud/talk/setReadMarker/setReadMarker.dart';
|
||||
import '../../../api/marianumcloud/talk/setReadMarker/setReadMarkerParams.dart';
|
||||
import '../../../widget/confirmDialog.dart';
|
||||
import '../../../widget/debug/debugTile.dart';
|
||||
import 'chatView.dart';
|
||||
|
||||
class ChatTile extends StatefulWidget {
|
||||
@ -168,6 +169,7 @@ class _ChatTileState extends State<ChatTile> {
|
||||
).asDialog(context);
|
||||
},
|
||||
),
|
||||
DebugTile(widget.data.toJson()).asTile(context),
|
||||
],
|
||||
));
|
||||
},
|
||||
|
Reference in New Issue
Block a user