flutter_chips_input icon indicating copy to clipboard operation
flutter_chips_input copied to clipboard

Compiler error after upgrading to Flutter 2.13.0-0.2.pre (Beta channel)

Open davebound opened this issue 3 years ago • 1 comments

flutter build web --no-sound-null-safety

Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety

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

  • TextInputClient.insertTextPlaceholder
  • TextInputClient.removeTextPlaceholder
  • TextInputClient.showToolbar

davebound avatar Apr 25 '22 13:04 davebound

Cause is this breaking change in flutter sdk: https://docs.flutter.dev/release/breaking-changes/scribble-text-input-client

Fix would be to add these methods to class ChipsInputState<T> in chips_input.dart:

 @override
  void showToolbar() {}

  @override
  void insertTextPlaceholder(Size size) {}

  @override
  void removeTextPlaceholder() {}

davebound avatar Apr 25 '22 13:04 davebound