feat: Add debug logging for drawing navigation and toolbar actions

This commit is contained in:
Janez T
2025-10-23 20:29:51 +02:00
parent 1688d6f538
commit 795f223fe8
3 changed files with 29 additions and 1 deletions

View File

@@ -694,6 +694,7 @@ class _MessagesTabState extends State<MessagesTab> {
}
: message.isDrawing && message.drawingId != null
? () {
debugPrint('🗺️ [MessagesTab] Drawing tapped! ID: ${message.drawingId}');
final mapProvider = context
.read<MapProvider>();
final drawingProvider = context
@@ -1333,6 +1334,14 @@ class _MessageBubble extends StatelessWidget {
debugPrint(' sarMarkerType: ${message.sarMarkerType}');
}
if (message.text.startsWith('D:')) {
debugPrint('🎨 [MessageBubble] Rendering drawing message:');
debugPrint(' Text: ${message.text.substring(0, message.text.length > 50 ? 50 : message.text.length)}...');
debugPrint(' isDrawing: ${message.isDrawing}');
debugPrint(' drawingId: ${message.drawingId}');
debugPrint(' onTap is null: ${onTap == null}');
}
return GestureDetector(
onTap: onTap,
onLongPress: () => _showMessageOptions(context),