Closed letungcntt closed 3 years ago
@letungcntt Having the same issue, did you find a solution ?
yes, t have a solution but you need fork this Project
because, if upgrade to flutter channel Master, buildTextSpan(context, a, b)
but with global buildTextSpan(a, b)
yes, t have a solution but you need fork this Project
Sure, please let me know what to change in the fork!
yes, t have a solution but you need fork this Project
Sure, please let me know what to change in the fork!
pls check
yes, t have a solution but you need fork this Project because, if upgrade to flutter channel Master,
buildTextSpan(context, a, b)
but with masterbuildTextSpan(a, b)
I will try that Thank you for your help and reactivity!
yes, t have a solution but you need fork this Project because, if upgrade to flutter channel Master,
buildTextSpan(context, a, b)
but with globalbuildTextSpan(a, b)
In flutter_mentions: ^2.0.0-nullsafety
In annotation_editing_controller.dart
I already have :
TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {...}
I see in your fork that you also have kep the same code https://github.com/letungcntt/flutter_mentions/blob/master/lib/src/annotation_editing_controller.dart
Did you stay on flutter channel master
?
yes, t have a solution but you need fork this Project because, if upgrade to flutter channel Master,
buildTextSpan(context, a, b)
but with globalbuildTextSpan(a, b)
In
flutter_mentions: ^2.0.0-nullsafety
In
annotation_editing_controller.dart
I already have :TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {...}
I see in your fork that you also have kep the same code https://github.com/letungcntt/flutter_mentions/blob/master/lib/src/annotation_editing_controller.dart
Did you stay on
flutter channel master
? yes, i'm using channel master
@letungcntt
On channel master
, is it correct to have TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {...}
?
@zzterrozz on channel master
they using TextSpan buildTextSpan({required BuildContext context, TextStyle? style , required bool withComposing}) {...}
but pub-get with stable and using TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {...}
@letungcntt I just switched back to flutter channel stable
to fix it for the moment
Thank you for your help
flutter channel stable
Unfortunately it didn't work for me, any other suggestions?
flutter channel stable
Unfortunately it didn't work for me, any other suggestions?
Stable version ?
I can't build my app because this error :
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mentions-2.0.0-nullsafety/lib/src/annotation_editing_controller.dart:58:12: Error: The method 'AnnotationEditingController.buildTextSpan' has fewer named arguments than those of overridden method 'TextEditingController.buildTextSpan'. TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) { ^ ../../flutter/packages/flutter/lib/src/widgets/editable_text.dart:192:12: Context: This is the overridden method ('buildTextSpan'). TextSpan buildTextSpan({required BuildContext context, TextStyle? style , required bool withComposing}) { ^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mentions-2.0.0-nullsafety/lib/src/annotation_editing_controller.dart:58:12: Error: The method 'AnnotationEditingController.buildTextSpan' doesn't have the named parameter 'context' of overridden method 'TextEditingController.buildTextSpan'. TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) { ^ ../../flutter/packages/flutter/lib/src/widgets/editable_text.dart:192:12: Context: This is the overridden method ('buildTextSpan'). TextSpan buildTextSpan({required BuildContext context, TextStyle? style , required bool withComposing}) {