import "package:gpt_markdown/gpt_markdown.dart"; import "package:shadcn_flutter/shadcn_flutter.dart"; class AdvisorMessage extends StatelessWidget { const AdvisorMessage({super.key, required this.title, required this.body}); final String title; final String body; @override Widget build(BuildContext context) { final theme = Theme.of(context); return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ OutlinedContainer( padding: const EdgeInsets.all(10), backgroundColor: theme.colorScheme.primary, child: Icon(LucideIcons.brain).iconSmall, ), Gap(8), Text( title, style: theme.typography.p.copyWith(fontSize: 13), ), ], ), if (body.isNotEmpty) ...[ Gap(8), OutlinedContainer( padding: const EdgeInsets.all(12), child: GptMarkdown(body), ), ], ], ); } }