Add chat message widget
This commit is contained in:
parent
a9f8694934
commit
f46b7227a2
1 changed files with 18 additions and 0 deletions
18
lib/widgets/chat_message.dart
Normal file
18
lib/widgets/chat_message.dart
Normal 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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue