You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/main.dart
+33-26Lines changed: 33 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -43,15 +43,17 @@ class ChatSampleState extends State<ChatSample> {
43
43
),
44
44
),
45
45
ChatMessage(
46
-
text:'I’ve been doing well. I’ve started working on a new project recently.',
46
+
text:
47
+
'I’ve been doing well. I’ve started working on a new project recently.',
47
48
time:DateTime.now(),
48
49
author:constChatAuthor(
49
50
id:'8ob3-b720-g9s6-25s8',
50
51
name:'Outgoing user name',
51
52
),
52
53
),
53
54
ChatMessage(
54
-
text:'That sounds great! I’ve been exploring a few new frameworks myself.',
55
+
text:
56
+
'That sounds great! I’ve been exploring a few new frameworks myself.',
55
57
time:DateTime.now(),
56
58
author:constChatAuthor(
57
59
id:'a2c4-56h8-9x01-2a3d',
@@ -71,25 +73,30 @@ class ChatSampleState extends State<ChatSample> {
71
73
messages: _messages, // Setting the messages list.
72
74
outgoingUser:'8ob3-b720-g9s6-25s8', // Outgoing user ID.
73
75
incomingBubbleSettings:ChatBubbleSettings(
74
-
showTimestamp:false,
75
-
showUserName:false,
76
-
textStyle:TextStyle(color:Colors.white),
77
-
contentPadding:EdgeInsets.only(top:15, bottom:30, left:30, right:30), // Ensure sufficient space inside the bubble to accommodate the custom tail shape.
78
-
contentBackgroundColor:Colors.green[600],
79
-
contentShape:CustomBorderShape(isOutgoing:false), // Custom shape for incoming message bubble.
76
+
showTimestamp:false,
77
+
showUserName:false,
78
+
textStyle:TextStyle(color:Colors.white),
79
+
// Ensure sufficient space inside the bubble to accommodate the custom tail shape.
0 commit comments