Cretezy / flutter_linkify

Turns text URLs and emails into clickable inline links in text for Flutter
https://pub.dartlang.org/packages/flutter_linkify
MIT License
262 stars 99 forks source link

When upgrading to 6.0, Error: Type 'EditableTextContextMenuBuilder' not found. flutter_linkify.dart:192 #122

Open dineiar opened 1 year ago

dineiar commented 1 year ago

I am currently using flutter_linkify 5.0.2 on an app being built on Flutter 3.3.10 and Dart 2.18.6.

I tried to upgrade to flutter_linkify 6.0.0 (according to pub.dev, its minimum Dart SDK is 2.17 [here], so I should be able to use it with my current Dart version) and started receiving the following error on the build process:

: Error: Type 'EditableTextContextMenuBuilder' not found.              flutter_linkify.dart:192
  final EditableTextContextMenuBuilder? contextMenuBuilder;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

: Error: 'EditableTextContextMenuBuilder' isn't a type.                flutter_linkify.dart:192
flutter_linkify.dart:192
  final EditableTextContextMenuBuilder? contextMenuBuilder;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: Error: No named parameter with the name 'contextMenuBuilder'.        flutter_linkify.dart:295
flutter_linkify.dart:295
      contextMenuBuilder: contextMenuBuilder,
      ^^^^^^^^^^^^^^^^^^
: Context: Found this candidate, but the arguments don't match.        flutter_linkify.dart:234
selectable_text.dart:234
  const SelectableText.rich(
        ^^^^^^^^^^^^^^^^^^^

I believe this error is related to my Flutter/Dart version (I am planning to update it soon), but I decided to open this issue anyway due to the information provided in pub.dev that my version should be supported.