Comments (5)
It works on flutter 2.0.5 thought. But not in latest stable version (2.2.0)
from code_field.
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.
Right that's because of the breaking change introduced in 2.2. I'll merge the fix in the beta branch
from code_field.
Ok I just pushed an update. Let me know if it works!
from code_field.
@BertrandBev it works!, Thank you for your support ๐
from code_field.
Related Issues (20)
- Delete CodeController.onChange HOT 1
- Use onKeyEvent instead of onKey in FocusNode
- Publish new version to include lineNumbers functionality HOT 8
- Enable Selection for disabled Textfield HOT 7
- How to add HTML?
- README Update for theme and CodeTheme HOT 1
- Invalid value: Only valid value is x: x HOT 1
- cannot select multi lines when wrap CodeField in a SingleChildScrollView HOT 11
- Scrolling bug while editing code in CodeField HOT 1
- "theme" not usable in CodeController HOT 4
- FormatException: Nothing to repeat HOT 2
- Any way to set a hint? HOT 10
- Auto detect languages? HOT 1
- CodeController theme? HOT 1
- Can't scroll Horizontally on iOS HOT 1
- How can I show the text selection when the code_field loses focus?
- Apply text style to ranges of text
- How to make the editor component fill the full screen๏ผ HOT 1
- CodeController copywith method HOT 4
- Improving Performance for Large File Handling in Code Editors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code_field.