danvick / flutter_chips_input

Flutter input field that takes in Material Chips as entries
https://pub.dev/packages/flutter_chips_input
BSD 2-Clause "Simplified" License
110 stars 146 forks source link

Not capatable with latest flutter version 3.24.* #142

Open shubham16g opened 1 week ago

shubham16g commented 1 week ago

While compiling the app, I am getting below errors:

/C:/Users/shubh/AppData/Local/Pub/Cache/hosted/pub.dev/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.insertContent
 - 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<T> extends State<ChipsInput<T>>
      ^^^^^^^^^^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/services/text_input.dart:1231:8: Context: 'TextInputClient.didChangeInputControl' is defined here.
  void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) {}
       ^^^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/services/text_input.dart:1185:8: Context: 'TextInputClient.insertContent' is defined here.
  void insertContent(KeyboardInsertedContent content) {}
       ^^^^^^^^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/services/text_input.dart:1252:8: Context: 'TextInputClient.performSelector' is defined here.
  void performSelector(String selectorName) {}
       ^^^^^^^^^^^^^^^
/C:/Users/shubh/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_chips_input-2.0.0/lib/src/chips_input.dart:437:37: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
                    theme.textTheme.subtitle1!.copyWith(height: 1.5),
                                    ^^^^^^^^^

Failed to compile application.

Houasnia-Aymen-Ahmed commented 1 week ago

same error here, the application can't be compiled because of it.