Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Sakthivel-bpigt opened this issue Aug 9, 2022 · 14 comments · Fixed by #55
Labels
bug Something isn't working

Comments

@Sakthivel-bpigt
Copy link

Sakthivel-bpigt commented Aug 9, 2022

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
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:

  • 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.

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.

  • Where:

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

  • What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' 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 8s

@Sakthivel-bpigt
Copy link
Author

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

@deandreamatias
Copy link
Contributor

deandreamatias commented Aug 9, 2022

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

@Sakthivel-bpigt
Copy link
Author

Sakthivel-bpigt commented Aug 9, 2022 via email

@deandreamatias
Copy link
Contributor

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

Environment

Package version:

Flutter doctor
Code sample

Description

Expected behavior:

Current behavior:

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Stacktrace/Logcat

@deandreamatias deandreamatias added the bug Something isn't working label Aug 9, 2022
@Sakthivel-bpigt
Copy link
Author

Sakthivel-bpigt commented Aug 10, 2022 via email

@deandreamatias
Copy link
Contributor

Where?

@Sakthivel-bpigt
Copy link
Author

Sakthivel-bpigt commented Aug 10, 2022 via email

@deandreamatias
Copy link
Contributor

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
Copy link
Contributor

@vivian-ng
Copy link

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
Copy link
Contributor

Flutter stable is now requiring :

  • TextInputClient.didChangeInputControl
  • TextInputClient.performSelector

How about supporting this, and maybe deploy all the changes to pub.dev ?

@darkwood-studios
Copy link

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
Copy link

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

rvndsngwn added a commit to rvndsngwn/form_builder_extra_fields that referenced this issue Feb 2, 2023
@rvndsngwn rvndsngwn mentioned this issue Feb 2, 2023
@hemid32
Copy link

hemid32 commented Feb 6, 2023

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) {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants