build method

  1. @override
dynamic build(
  1. dynamic context
)

Implementation

@override
Widget build(BuildContext context) {
  return Container(
    padding: const EdgeInsets.only(left: 10, bottom: 5),
    child: RichText(
      text: TextSpan(
        text: message.author.id,
        style: Theme.of(context).textTheme.bodySmall,
        children: [
          const WidgetSpan(
            child: SizedBox(width: 3),
          ),
          TextSpan(
            text: message.metadata?['body'] ?? '',
            style: Theme.of(context).textTheme.labelLarge,
          ),
        ],
      ),
    ),
  );
}