feat(ui): add support for customizing messageInput hint.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-05-02 19:41:41 +05:30
committed by xsahil03x
parent 53baa5a574
commit d344355e91
2 changed files with 72 additions and 10 deletions
+21 -1
View File
@@ -31,7 +31,27 @@
return true;
),
```
- Added `StreamMessageInput.hintGetter` to allow users to customize the hint text of the message
input. [#1401](https://github.com/GetStream/stream-chat-flutter/issues/1401)
```dart
StreamMessageInput(
hintGetter: (context, hintType) {
switch (hintType) {
case HintType.searchGif:
return 'Custom Search Giphy';
case HintType.addACommentOrSend:
return 'Custom Add a comment or send';
case HintType.slowModeOn:
return 'Custom Slow mode is on';
case HintType.writeAMessage:
return 'Custom Write a message';
}
},
),
```
🔄 Changed
- Deprecated `MessageTheme.linkBackgroundColor` in favor of `MessageTheme.urlAttachmentBackgroundColor`.