Open wcoder opened 5 months ago
Describe the bug The stack trace is not displayed when TalkerDataCard is expanded.
TalkerDataCard
To Reproduce Steps to reproduce the behavior:
_talker.error(any exception)
TalkerScreen
Expected behavior When the TalkerDataCard is expanded, stack trace should be displayed.
Screenshots If applicable, add screenshots to help explain your problem.
Env:
Investigation
The problem is here:
https://github.com/Frezyx/talker/blob/09e75c52ecf9b072982b135c1cd7582f13da5908/packages/talker_flutter/lib/src/ui/widgets/data_card.dart#L177-L180
The usual widget.data contains a TalkerLog object and is caught by this condition above and returns null.
widget.data
TalkerLog
null
Workaround
talker.error('$message\nex:$ex\nst:$stacktrace', ex, stacktrace);
Hello @wcoder ! This is really a bug. We need to fix this issue ⚙️
Describe the bug The stack trace is not displayed when
TalkerDataCard
is expanded.To Reproduce Steps to reproduce the behavior:
_talker.error(any exception)
TalkerScreen
Expected behavior When the
TalkerDataCard
is expanded, stack trace should be displayed.Screenshots If applicable, add screenshots to help explain your problem.
Env:
Investigation
The problem is here:
https://github.com/Frezyx/talker/blob/09e75c52ecf9b072982b135c1cd7582f13da5908/packages/talker_flutter/lib/src/ui/widgets/data_card.dart#L177-L180
The usual
widget.data
contains aTalkerLog
object and is caught by this condition above and returnsnull
.Workaround