Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't run on Android #4

Closed
alexmercier25 opened this issue May 20, 2021 · 5 comments
Closed

Doesn't run on Android #4

alexmercier25 opened this issue May 20, 2021 · 5 comments

Comments

@alexmercier25
Copy link

Hi, when I try to run the example, it shows me this error:
Screenshot_9

@alexmercier25
Copy link
Author

It works on flutter 2.0.5 thought. But not in latest stable version (2.2.0)

@dargoz
Copy link

dargoz commented May 21, 2021

I think this issue caused by new flutter / dart version.. I tried to compile it on Web also failed in 2.2.0, and still work on 2.0.5
this is my issue try to run on web :

Launching lib\main.dart on Edge in debug mode...
Waiting for connection from debug service on Edge...
/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/code_text_field-1.0.0-9/lib/src/code_field.dart:16:12: Error: The method 'LineNumberController.buildTextSpan' has fewer named arguments than those of overridden method 'TextEditingController.buildTextSpan'.
  TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {
           ^
/D:/src/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}) {
           ^
/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/code_text_field-1.0.0-9/lib/src/code_field.dart:16:12: Error: The method 'LineNumberController.buildTextSpan' doesn't have the named parameter 'context' of overridden method 'TextEditingController.buildTextSpan'.
  TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {
           ^
/D:/src/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}) {
           ^
/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/code_text_field-1.0.0-9/lib/src/code_controller.dart:210:12: Error: The method 'CodeController.buildTextSpan' has fewer named arguments than those of overridden method 'TextEditingController.buildTextSpan'.
  TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {
           ^
/D:/src/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}) {
           ^
/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/code_text_field-1.0.0-9/lib/src/code_controller.dart:210:12: Error: The method 'CodeController.buildTextSpan' doesn't have the named parameter 'context' of overridden method 'TextEditingController.buildTextSpan'.
  TextSpan buildTextSpan({TextStyle? style, bool? withComposing}) {
           ^
/D:/src/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}) {
           ^
Failed to compile application.

@BertrandBev
Copy link
Owner

Right that's because of the breaking change introduced in 2.2. I'll merge the fix in the beta branch

@BertrandBev
Copy link
Owner

Ok I just pushed an update. Let me know if it works!

@dargoz
Copy link

dargoz commented May 23, 2021

@BertrandBev it works!, Thank you for your support 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants