Skip to content

Commit dff40e9

Browse files
author
LavanyaA
authored
Merge pull request #2 from Hariram-SF4428/FLUT-947336-Update-breaking-changes-APIs-in-chat
FLUT-947336 - [Others] Updated breaking changes APIs in sample
2 parents 9f19b1d + 45fb9b8 commit dff40e9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/main.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ class _MyHomePageState extends State<MyHomePage> {
9999
child: SfChat(
100100
messages: _messages,
101101
outgoingUser: 'Sam',
102-
incomingBubbleSettings: ChatBubbleSettings(
103-
contentBackgroundColor: Colors.grey.shade300,
102+
incomingMessageSettings: ChatMessageSettings(
103+
backgroundColor: Colors.grey.shade300,
104104
widthFactor: 0.9,
105-
contentShape: const RoundedRectangleBorder(
105+
shape: const RoundedRectangleBorder(
106106
borderRadius: BorderRadius.only(
107107
topLeft: Radius.circular(5),
108108
topRight: Radius.circular(5),
@@ -115,13 +115,13 @@ class _MyHomePageState extends State<MyHomePage> {
115115
fontSize: 10,
116116
),
117117
),
118-
outgoingBubbleSettings: ChatBubbleSettings(
119-
contentBackgroundColor: Theme.of(context).colorScheme.primary,
118+
outgoingMessageSettings: ChatMessageSettings(
119+
backgroundColor: Theme.of(context).colorScheme.primary,
120120
widthFactor: 0.85,
121121
showTimestamp: false,
122-
showUserAvatar: false,
123-
showUserName: false,
124-
contentShape: const RoundedRectangleBorder(
122+
showAuthorAvatar: false,
123+
showAuthorName: false,
124+
shape: const RoundedRectangleBorder(
125125
borderRadius: BorderRadius.only(
126126
topLeft: Radius.circular(5),
127127
topRight: Radius.circular(5),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ environment:
3030
dependencies:
3131
flutter:
3232
sdk: flutter
33-
syncfusion_flutter_chat: ^27.1.48
33+
syncfusion_flutter_chat: ^29.1.33
3434

3535

3636
# The following adds the Cupertino Icons font to your application.

0 commit comments

Comments
 (0)