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

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

Open davebound opened 2 years ago

davebound commented 2 years ago

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:

davebound commented 2 years ago

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 in chips_input.dart:

 @override
  void showToolbar() {}

  @override
  void insertTextPlaceholder(Size size) {}

  @override
  void removeTextPlaceholder() {}