Add chat message widget

This commit is contained in:
Tommy Chow 2021-08-23 00:29:23 -04:00
parent a9f8694934
commit f46b7227a2

View file

@ -0,0 +1,18 @@
import 'package:flutter/widgets.dart';
class ChatMessage extends StatelessWidget {
List<InlineSpan> children;
ChatMessage({Key? key, required this.children}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
child: RichText(
text: TextSpan(
children: children,
),
),
);
}
}