mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Add counter on comment form
This commit is contained in:
@ -325,15 +325,8 @@ class _ConversationScreenState extends State<ConversationScreen> {
|
||||
maxLengthEnforced: true,
|
||||
|
||||
// Show max length only when there is some text already typed
|
||||
buildCounter: (
|
||||
BuildContext context, {
|
||||
@required int currentLength,
|
||||
@required int maxLength,
|
||||
@required bool isFocused,
|
||||
}) =>
|
||||
currentLength > 0
|
||||
? Text("$currentLength/$maxLength")
|
||||
: Container(),
|
||||
buildCounter: smartInputCounterWidgetBuilder,
|
||||
|
||||
enabled: !_isSendingMessage,
|
||||
controller: _textEditingController,
|
||||
onChanged: _updatedText,
|
||||
|
Reference in New Issue
Block a user