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