Code Monkey home page Code Monkey logo

Comments (5)

alexmercier25 avatar alexmercier25 commented on May 18, 2024

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

from code_field.

dargoz avatar dargoz commented on May 18, 2024

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.

from code_field.

BertrandBev avatar BertrandBev commented on May 18, 2024

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

from code_field.

BertrandBev avatar BertrandBev commented on May 18, 2024

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

from code_field.

dargoz avatar dargoz commented on May 18, 2024

@BertrandBev it works!, Thank you for your support ๐Ÿ˜Š

from code_field.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.