diff --git a/lib/main.dart b/lib/main.dart index f444123..8a324a7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -99,10 +99,10 @@ class _MyHomePageState extends State { child: SfChat( messages: _messages, outgoingUser: 'Sam', - incomingBubbleSettings: ChatBubbleSettings( - contentBackgroundColor: Colors.grey.shade300, + incomingMessageSettings: ChatMessageSettings( + backgroundColor: Colors.grey.shade300, widthFactor: 0.9, - contentShape: const RoundedRectangleBorder( + shape: const RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(5), topRight: Radius.circular(5), @@ -115,13 +115,13 @@ class _MyHomePageState extends State { fontSize: 10, ), ), - outgoingBubbleSettings: ChatBubbleSettings( - contentBackgroundColor: Theme.of(context).colorScheme.primary, + outgoingMessageSettings: ChatMessageSettings( + backgroundColor: Theme.of(context).colorScheme.primary, widthFactor: 0.85, showTimestamp: false, - showUserAvatar: false, - showUserName: false, - contentShape: const RoundedRectangleBorder( + showAuthorAvatar: false, + showAuthorName: false, + shape: const RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(5), topRight: Radius.circular(5), diff --git a/pubspec.yaml b/pubspec.yaml index a91a16b..98132cf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,7 +30,7 @@ environment: dependencies: flutter: sdk: flutter - syncfusion_flutter_chat: ^27.1.48 + syncfusion_flutter_chat: ^29.1.33 # The following adds the Cupertino Icons font to your application.