Flutter issue: 'ChipsInputState' is missing
Solution 1
If you are using Flutter Form Builder, you can manually update the flutter_chips_input library to the latest version because the Flutter form builder uses an old version.
This issue was discussed in the Flutter GitHub repository Issues section here.
Adding the below dependency manually to the pubspec.yaml
file solved the problem for me:
flutter_chips_input: ^1.9.4
Solution 2
What worked for me
Look for packages in your
pubspec.yaml
file that depend on thechips_input
package, e.g.form_builder
and make sure it's the latest version.Upgrade all packages in
pubspec.yaml
file to be sure.
Solution 3
I am guessing you are on dev or master channel (at least that is the cause in my case)...you can switch to beta or stable to get rid of the error:
flutter channel beta|stable
Solution 4
I have also faced the same problem and not sure how that was fixed.
I have tried the following things
- Check Flutter Doctor and fix if you have any errors
- Try Flutter clean
- Delete pubspec.lock file and run flutter pub get or flutter pub upgrade
I Hope, that may help you guys.
yunojp
Updated on December 15, 2022Comments
-
yunojp over 1 year
I'm currently learning Flutter using Android Studio but I can't figure this issue help pls thank you :(
Compiler message: ../../.pub-cache/hosted/pub.dartlang.org/flutter_chips_input-1.3.1/lib/src/chips_input.dart:42:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members: - TextInputClient.connectionClosed Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation.
class ChipsInputState extends State> ^^^^^^^^^^^^^^^ ../../flutter/packages/flutter/lib/src/services/text_input.dart:658:8: Context: 'TextInputClient.connectionClosed' is defined here. void connectionClosed(); ^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed.
FAILURE: Build failed with an exception.
Where: Script '/Users/clyde/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 780
-
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/clyde/flutter/bin/flutter'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 18s Finished with error: Gradle task assembleDebug failed with exit code 1
-
Purushotam Kumar almost 4 yearsHave you found the solution?