visualizers property
Implementation
static final visualizers = <String, Widget Function(BuildContext, Span)>{
"chatbot.thread.message": (context, span) => Container(
padding: EdgeInsets.all(10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(
"${span.attributes.where((a) => a.key == "from_participant_name").firstOrNull?.value.toString() ?? ""}:",
style: ShadTheme.of(context).textTheme.p,
),
ChatBubble(
mine: false,
text:
span.attributes
.where((a) => a.key == "text")
.firstOrNull
?.value
.toString() ??
"",
),
],
),
),
};