From 10773b4059661ef93de266679965a299bdd42526 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sat, 21 Nov 2020 14:41:06 +0100 Subject: [PATCH] fix: Input bar not working, making app unusable --- lib/components/input_bar.dart | 12 ++++++++++-- pubspec.yaml | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/components/input_bar.dart b/lib/components/input_bar.dart index 0e2680d4..9c871298 100644 --- a/lib/components/input_bar.dart +++ b/lib/components/input_bar.dart @@ -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, diff --git a/pubspec.yaml b/pubspec.yaml index ef4715df..8eb4b7aa 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: fluffychat description: Chat with your friends. publish_to: none -version: 0.22.0+49 +version: 0.22.1+50 environment: sdk: ">=2.6.0 <3.0.0" @@ -84,4 +84,4 @@ flutter: - assets/ - assets/sounds/ - assets/js/ - - assets/js/package/ \ No newline at end of file + - assets/js/package/