fix: cooldown and teams, added correct textfield hint

This commit is contained in:
Deven Joshi
2021-08-18 15:45:46 +05:30
parent fd13d1089f
commit f28b6b61a0
9 changed files with 31 additions and 0 deletions
@@ -100,6 +100,9 @@ abstract class Translations {
/// The label for write a message in [MessageInput]
String get writeAMessageLabel;
/// The label for slow mode enabled in [MessageInput]
String get slowModeOnLabel;
/// The label for instant commands in [MessageInput]
String get instantCommandsLabel;
@@ -664,4 +667,7 @@ class DefaultTranslations implements Translations {
@override
String get replyToMessageLabel => 'Reply to Message';
@override
String get slowModeOnLabel => 'Slow mode ON';
}
@@ -835,6 +835,10 @@ class MessageInputState extends State<MessageInput> {
if (_attachments.isNotEmpty) {
return context.translations.addACommentOrSendLabel;
}
if(_timeOut != 0 && _timeOut != null) {
return context.translations.slowModeOnLabel;
}
return context.translations.writeAMessageLabel;
}