File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ class _ChatScreenState extends State<ChatScreen> {
185
185
textFieldBackgroundColor: theme.textFieldBackgroundColor,
186
186
closeIconColor: theme.closeIconColor,
187
187
textFieldConfig: TextFieldConfiguration (
188
+ enableEnterToSubmit: true ,
188
189
contentPadding: const EdgeInsets .symmetric (horizontal: 8 ),
189
190
onMessageTyping: (status) {
190
191
/// Do with status
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ class ChatViewAppBar extends StatelessWidget {
33
33
const ChatViewAppBar ({
34
34
Key ? key,
35
35
required this .chatTitle,
36
- this .backgroundColor = Colors .white,
36
+ @Deprecated ('Use backgroundColor instead' ) this .backGroundColor = Colors .white,
37
+ this .backgroundColor,
37
38
this .centerTitle = false ,
38
39
this .userStatus,
39
40
this .profilePicture,
@@ -53,8 +54,12 @@ class ChatViewAppBar extends StatelessWidget {
53
54
this .networkImageProgressIndicatorBuilder,
54
55
}) : super (key: key);
55
56
57
+ /// [Deprecated] use [backgroundColor] instead, this will be removed in next versions
58
+ @Deprecated ('Use backgroundColor instead. This will be removed in future versions.' )
59
+ final Color backGroundColor;
60
+
56
61
/// Allow user to change colour of appbar.
57
- final Color backgroundColor;
62
+ final Color ? backgroundColor;
58
63
59
64
/// Allow user to center title of appbar.
60
65
final bool centerTitle;
@@ -120,7 +125,7 @@ class ChatViewAppBar extends StatelessWidget {
120
125
top: MediaQuery .of (context).padding.top,
121
126
bottom: 4 ,
122
127
),
123
- color: backgroundColor,
128
+ color: backgroundColor ?? backGroundColor ,
124
129
child: Row (
125
130
children: [
126
131
if (showLeading)
You can’t perform that action at this time.
0 commit comments