mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
feat: Add debug logging for drawing navigation and toolbar actions
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user