Comments (6)
@MichelDiz the library has now been updated to work with Flutter 1.12.13+hotfix.7.
from rich_code_editor.
@kanam999 i haven't worked with Flutter for web/desktop yet. Only been working with Flutter for mobile. I am not sure if I will have time to look into desktop anytime soon.
If you are interested, please feel free to try the desktop and contribute.
Thanks!
from rich_code_editor.
I was about to try on desktop, but I got:
Syncing files to device macOS...
Compiler message:
Syncing files to device macOS... ../../../.pub-cache/hosted/pub.dartlang.org/rich_code_editor-0.2.9/lib/code_editor/
widgets/code_editable_text.dart:1388:11: Error: The getter 'kMinInteractiveSize'
isn't defined for the class 'CodeEditableTextState'.
Syncing files to device macOS... - 'CodeEditableTextState' is from
'package:rich_code_editor/code_editor/widgets/code_editable_text.dart'
('../../../.pub-cache/hosted/pub.dartlang.org/rich_code_editor-0.2.9/lib/code_edit
or/widgets/code_editable_text.dart').
Syncing files to device macOS... Try correcting the name to the name of an existing getter, or defining a getter or
field named 'kMinInteractiveSize'.
Syncing files to device macOS... kMinInteractiveSize,
Syncing files to device macOS... ^^^^^^^^^^^^^^^^^^^
Syncing files to device macOS... 4.517ms (!)
error Command failed with exit code 3.
Which is the same issue in #13
from rich_code_editor.
I tried it for my personal productivity toolkit, here's what I got:
VERSION
rich_code_editor: 0.4.1
LOGS
Performing hot reload...
Syncing files to device macOS...
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building CodeTextField(controller: CodeEditingController#33e3c(CodeEditingValue(text: ┤├, selection: TextSelection(baseOffset: -1, extentOffset: -1, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))), decoration: InputDecoration(hintText: "Enter Your Code Here", floatingLabelBehavior: FloatingLabelBehavior.auto), keyboardType: TextInputType(name: TextInputType.emailAddress, signed: null, decimal: null), style: TextStyle(inherit: true, color: Color(0xff000000), size: 16.0), autofocus: true, maxLines: 150, minLines: 50, textInputAction: newline, dirty, dependencies: [_InheritedTheme, _LocalizationsScope-[GlobalKey#347b0]], state: CodeTextFieldState#99229):
'package:rich_code_editor/code_editor/widgets/code_editable_text.dart': Failed assertion: line 328 pos 16: 'cursorColor != null': is not true.
The relevant error-causing widget was:
CodeTextField file:///Users/musa/Work/based_kit/lib/widgets/new_snippet_dialog.dart:101:34
When the exception was thrown, this was the stack:
#2 new CodeEditableText (package:rich_code_editor/code_editor/widgets/code_editable_text.dart:328:16)
#3 CodeTextFieldState.build (package:rich_code_editor/code_editor/widgets/code_text_field.dart:961:14)
#4 StatefulElement.build (package:flutter/src/widgets/framework.dart:4619:28)
#5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4502:15)
#6 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
Reloaded 5 of 734 libraries in 436ms.
MY CODE
CodeTextField(
controller: _codeController,
keyboardType: TextInputType.emailAddress,
textInputAction: TextInputAction.newline,
highlighter: DummyHighlighter(),
onChanged: _onCodeChanged,
minLines: 50,
maxLines: 150,
autofocus: true,
style:
TextStyle(fontSize: 16.0, color: Colors.black),
decoration: InputDecoration(
hintText: "Enter Your Code Here",
),
),
Is the cursorColor
variable suppose to be null by default?
from rich_code_editor.
I tried version: 0.4.0
but that one just has a hell load of unstability. And feels unresponsive, the best way to make it feel more realistic and to improve the UX would be to implement Key listening for buttons such as "SPACE", or "ENTER".
from rich_code_editor.
@BasedMusa sorry for late response. i have modified the library quite bit as of now. please check out v1.0.0 which is the most stable release.
from rich_code_editor.
Related Issues (9)
- (Flutter beta) NoSuchMethodError: The getter 'hasFloatingPlaceholder was called on null. HOT 2
- The getter 'kMinInteractiveSize' isn't defined for the class 'CodeEditableTextState HOT 2
- Text manipulation gestures (e.g. double tap, tap & hold) do not seem to work on Android. HOT 4
- Implementation missing for the class RichCodeEditingController. HOT 3
- RenderEditable.obscuringCharacter HOT 2
- Editing huge chunk of code makes editor slow
- Does the syntax highlighting support JSON? HOT 3
- Is it possible to manipulate the wrapping/overflow behavior of the text within the editor?
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 rich_code_editor.