fix: Input bar not working, making app unusable

This commit is contained in:
Sorunome 2020-11-21 14:41:06 +01:00
commit 1e0e101bf0
2 changed files with 12 additions and 4 deletions

View file

@ -261,11 +261,19 @@ class InputBar extends StatelessWidget {
maxLines: maxLines,
keyboardType: keyboardType,
autofocus: autofocus,
onSubmitted: onSubmitted,
onSubmitted: (text) {
// fix for library for now
// it sets the types for the callback incorrectly
onSubmitted(text);
},
focusNode: focusNode,
controller: controller,
decoration: decoration,
onChanged: onChanged,
onChanged: (text) {
// fix for the library for now
// it sets the types for the callback incorrectly
onChanged(text);
},
textCapitalization: TextCapitalization.sentences,
),
suggestionsCallback: getSuggestions,