TinoGuo / pin_input_text_field

A textField widget to help display different style pin
Apache License 2.0
368 stars 81 forks source link

'EditableTextContextMenuBuilder' not found in pin_widget.dart #88

Closed rishabhsharma3617 closed 1 year ago

rishabhsharma3617 commented 1 year ago

One of our app modules is using the package as transitive dependency v - 4.4.0 , the app kept on failing due to this error coming from inside this package Error log -

` Error: Type 'EditableTextContextMenuBuilder' not found. pin_widget.dart:65 final EditableTextContextMenuBuilder? contextMenuBuilder; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : Error: Type 'EditableTextContextMenuBuilder' not found. pin_widget.dart:419 EditableTextContextMenuBuilder? contextMenuBuilder, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

: Error: 'EditableTextContextMenuBuilder' isn't a type. pin_widget.dart:65 final EditableTextContextMenuBuilder? contextMenuBuilder; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

: Error: No named parameter with the name 'contextMenuBuilder'. pin_widget.dart:281 contextMenuBuilder: widget.contextMenuBuilder, ^^^^^^^^^^^^^^^^^^ : Context: Found this candidate, but the arguments don't match. text_field.dart:277 const TextField({ ^^^^^^^^^ : Error: 'EditableTextContextMenuBuilder' isn't a type. pin_widget.dart:419 EditableTextContextMenuBuilder? contextMenuBuilder, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2` Upon looking in pub cache the EditableTextContextMenuBuilder is also coming as not defined in this package , can we look into the same !

rishabhsharma3617 commented 1 year ago

cc - @TinoGuo

bh-oussama commented 1 year ago

Same issue with 4.3.0. Last version working well is 4.2.0, just tested that now.

TinoGuo commented 1 year ago

sorry, but pls stay at 4.2.0 coz the EditableTextContextMenuBuilder required flutter 3.7 https://dart.dev/tools/pub/versioning#version-constraints-the-dart-approach to constraint the this library in 4.2.0 will soon (maybe this weekend) rollout 4.5.0 to adopt flutter 3.7 and 4.4.1 to support below flutter 3.7

TinoGuo commented 1 year ago

pls use 4.4.1 to resolve the issue, it should work coz it passed the 3.3.10 github action

rishabhsharma3617 commented 1 year ago

Thanks @TinoGuo for resolving this /\ . This is the package which i was using https://pub.dev/packages/sms_autofill and it was using the your package internally . ^ ^

TinoGuo commented 1 year ago

Thanks @TinoGuo for resolving this / . This is the package which i was using https://pub.dev/packages/sms_autofill and it was using the your package internally . ^ ^

welcome