flutter-form-builder-ecosystem / form_builder_extra_fields

Additional ready-made form input fields for flutter_form_builder package
https://pub.dev/packages/form_builder_extra_fields
BSD 3-Clause "New" or "Revised" License
28 stars 48 forks source link

Error: The non-abstract class 'ChipsInputState' is missing implementations for these members: - TextInputClient.performSelector #26

Closed Sakthivel-bpigt closed 1 year ago

Sakthivel-bpigt commented 2 years ago

Environment

Package version:

Flutter doctor ``` C:\src\flutter\bin\flutter.bat doctor --verbose [√] Flutter (Channel master, 3.1.0-0.0.pre.2166, on Microsoft Windows [Version 10.0.14393], locale en-IN) • Flutter version 3.1.0-0.0.pre.2166 on channel master at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 87f1684476 (30 hours ago), 2022-08-08 23:00:11 -0700 • Engine revision b6dd604d90 • Dart version 2.19.0 (build 2.19.0-76.0.dev) • DevTools version 2.16.0 [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at C:\Users\Snow\AppData\Local\Android\sdk • Platform android-32, build-tools 32.1.0-rc1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.14) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.11.32428.217 • Windows 10 SDK version 10.0.16299.0 [√] Android Studio (version 2021.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) [√] VS Code (version 1.70.0) • VS Code at C:\Users\Snow\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.44.0 [√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.14393] • Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.81 [√] HTTP Host Availability • All required HTTP hosts are available • No issues found! Process finished with exit code 0 ```
Code sample ```dart import 'package:flutter/material.dart'; import 'package:form_builder_extra_fields/form_builder_extra_fields.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. [@OverRide](https://github.com/OverRide) Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', home: FormBuilderTouchSpin( name: 'Volume', ), ); } } ```

Description

Expected behavior:

Current behavior:

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Stacktrace/Logcat

Launching lib\main.dart on moto g31 in debug mode...

Running Gradle task 'assembleDebug'...

../../AppData/Local/Pub/Cache/hosted/ pub.dartlang.org/flutter_chips_input-2.0.0/lib/src/chips_input.dart:87:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members:

Try to either

class ChipsInputState extends State<ChipsInput>

^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/services/text_input.dart:1172:8: Context: 'TextInputClient.performSelector' is defined here.

void performSelector(String selectorName) {}

^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

Execution failed for task ':app:compileFlutterBuildDebug'. Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

BUILD FAILED in 8s

Sakthivel-bpigt commented 2 years ago

when I add form_builder_extra_fields package I get this error Can someone help me how to fix it?

deandreamatias commented 2 years ago

Hi @Sakthivel-bpigt Try use FormBuilderFieldState instead ChipsInputState and please reply if works

Sakthivel-bpigt commented 2 years ago

Hi Matias, Thanks for the quick response.

But my problem is whenever I try to use the 'form_builder_extra_fields' package I get this error. Actually I want to use the "form builder touch spin" from the 'form_builder_extra_fields' package.


On Tue, Aug 9, 2022 at 5:46 PM Matias de Andrea @.***> wrote:

Hi @Sakthivel-bpigt https://github.com/Sakthivel-bpigt Try use FormBuilderFieldState instead ChipsInputState

— Reply to this email directly, view it on GitHub https://github.com/flutter-form-builder-ecosystem/form_builder_extra_fields/issues/26#issuecomment-1209305828, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFRU5L7JWBNKMBBARBG7ZLVYJD3DANCNFSM56AQIJRA . You are receiving this because you were mentioned.Message ID: <flutter-form-builder-ecosystem/form_builder_extra_fields/issues/26/1209305828 @github.com>

deandreamatias commented 2 years ago

Ok. Please fill this template to know the exactly behaviour:

Environment

Package version:

Flutter doctor ``` ```
Code sample ```dart ```

Description

Expected behavior:

Current behavior:

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Stacktrace/Logcat

Sakthivel-bpigt commented 2 years ago

Here's the document which has the details you asked for.

Message ID: <flutter-form-builder-ecosystem/form_builder_extra_fields/issues/26/1209318673 @github.com>

deandreamatias commented 2 years ago

Where?

Sakthivel-bpigt commented 2 years ago

I attached the document with the previous email, but I am putting the details directly in this mail

Environment

OS: Widows 10

IDE : Android studio bumblebee 2021.1.1 patch 1

Package version:

Flutter doctor

C:\src\flutter\bin\flutter.bat doctor --verbose

[√] Flutter (Channel master, 3.1.0-0.0.pre.2166, on Microsoft Windows [Version 10.0.14393], locale en-IN)

• Flutter version 3.1.0-0.0.pre.2166 on channel master at C:\src\flutter

• Upstream repository https://github.com/flutter/flutter.git

• Framework revision 87f1684476 (30 hours ago), 2022-08-08 23:00:11 -0700

• Engine revision b6dd604d90

• Dart version 2.19.0 (build 2.19.0-76.0.dev)

• DevTools version 2.16.0

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)

• Android SDK at C:\Users\Snow\AppData\Local\Android\sdk

• Platform android-32, build-tools 32.1.0-rc1

• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java

• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

• All Android licenses accepted.

[√] Chrome - develop for the web

• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.14)

• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

• Visual Studio Community 2019 version 16.11.32428.217

• Windows 10 SDK version 10.0.16299.0

[√] Android Studio (version 2021.1)

• Android Studio at C:\Program Files\Android\Android Studio

• Flutter plugin can be installed from:

https://plugins.jetbrains.com/plugin/9212-flutter

• Dart plugin can be installed from:

https://plugins.jetbrains.com/plugin/6351-dart

• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.70.0)

• VS Code at C:\Users\Snow\AppData\Local\Programs\Microsoft VS Code

• Flutter extension version 3.44.0

[√] Connected device (2 available)

• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.14393]

• Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.81

[√] HTTP Host Availability

• All required HTTP hosts are available

• No issues found!

Process finished with exit code 0

Code

*import *'package:flutter/material.dart'; import 'package:form_builder_extra_fields/form_builder_extra_fields.dart';

void main() { runApp(const MyApp()); }

class MyApp extends StatelessWidget { const MyApp({super.key});

// This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', home: FormBuilderTouchSpin( name: 'Volume', ), ); } }

Console output

Launching lib\main.dart on moto g31 in debug mode...

Running Gradle task 'assembleDebug'...

../../AppData/Local/Pub/Cache/hosted/ pub.dartlang.org/flutter_chips_input-2.0.0/lib/src/chips_input.dart:87:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members:

Try to either

class ChipsInputState extends State<ChipsInput>

^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/services/text_input.dart:1172:8: Context: 'TextInputClient.performSelector' is defined here.

void performSelector(String selectorName) {}

^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

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.

BUILD FAILED in 8s

Please let me know if you need more details

On Wed, Aug 10, 2022 at 6:16 PM Matias de Andrea @.***> wrote:

Where?

— Reply to this email directly, view it on GitHub https://github.com/flutter-form-builder-ecosystem/form_builder_extra_fields/issues/26#issuecomment-1210625540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFRU5OVQKEWMCYVFN4EEDLVYOQD7ANCNFSM56AQIJRA . You are receiving this because you were mentioned.Message ID: <flutter-form-builder-ecosystem/form_builder_extra_fields/issues/26/1210625540 @github.com>

deandreamatias commented 2 years ago

We don't test or get support our packages with Flutter master branch. I think that this error is because in this line of external package, don't implement TextInputClient.performSelector that is required on Flutter master version

deandreamatias commented 2 years ago

@danvick Do you want maintain this packages or can transfer to this organization and verified publisher?

Thanks

vivian-ng commented 2 years ago

I am also facing this dependency issue. Any workaround would be appreciated, as I cannot get snapcraft to package.

I tried to specify older versions of form_builder_extra_fields, flutter_form_builder, and flutter_chips_input but there are all kinds of dependency issues and I don't know which combination of the older versions will yield a successful compile.

ApiShiro commented 1 year ago

Flutter stable is now requiring :

darkwood-studios commented 1 year ago

same here. after updating to 3.7 i got this error

flutter_chips_input-2.0.0/lib/src/chips_input.dart:87:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members:

TextInputClient.didChangeInputControl TextInputClient.performSelector Try to either provide an implementation, inherit an implementation from a superclass or mixin, mark the class as abstract, or provide a 'noSuchMethod' implementation.

gomcodoctor commented 1 year ago

same here. after updating to 3.7 i got this error

flutter_chips_input-2.0.0/lib/src/chips_input.dart:87:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members:

TextInputClient.didChangeInputControl TextInputClient.performSelector Try to either provide an implementation, inherit an implementation from a superclass or mixin, mark the class as abstract, or provide a 'noSuchMethod' implementation.

Same issue

hemid32 commented 1 year ago

i have some issue . and fixed it by add this code to file chips_input.dart , add this to class ChipsInputState

@override void didChangeInputControl(s,h) {} @override void performSelector(String selectorName) {}