predatorx7 / snake_code Goto Github PK
View Code? Open in Web Editor NEWA snappy source code editor for android
License: BSD 3-Clause "New" or "Revised" License
A snappy source code editor for android
License: BSD 3-Clause "New" or "Revised" License
The onBackPress and onEnterPress methods aren't fired when backspace or enter key is pressed.
Expected behavior:
The callback methods should be fired.
Reproduces how often:
100%
0.3.2
Now themes does not work
TextEditingController controller = CreamyEditingController(
syntaxHighlighter: CreamySyntaxHighlighter(
language: LanguageType.dart,
theme: HighlightedThemeType.githubTheme, // <---
),
);
but supports system dark/light theme
maybe has the meaning add darkTheme
filed like a MaterialApp theme
for example:
TextEditingController controller = CreamyEditingController(
syntaxHighlighter: CreamySyntaxHighlighter(
language: LanguageType.dart,
theme: HighlightedThemeType.githubTheme, // <--- for light theme
darkTheme: HighlightedThemeType.anyDarkTheme, // <--- for dark theme
),
);
Error code:
Launching lib/main.dart on Mi 9T Pro in debug mode...
../../.pub-cache/hosted/pub.dartlang.org/creamy_field-0.3.1/lib/src/rich_editable_text.dart:903:7: Error: The non-abstract class 'RichEditableTextState' is missing implementations for these members:
- TextInputClient.currentAutofillScope
- TextInputClient.showAutocorrectionPromptRect
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class RichEditableTextState extends State<RichEditableText>
^^^^^^^^^^^^^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/services/text_input.dart:790:21: Context: 'TextInputClient.currentAutofillScope' is defined here.
AutofillScope get currentAutofillScope;
^^^^^^^^^^^^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/services/text_input.dart:805:8: Context: 'TextInputClient.showAutocorrectionPromptRect' is defined here.
void showAutocorrectionPromptRect(int start, int end);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/creamy_field-0.3.1/lib/src/rich_editable_text.dart:1895:29: Error: Getter not found: 'obscuringCharacter'.
text = RenderEditable.obscuringCharacter * text.length;
^^^^^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/sshkurko/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/sshkurko/development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 28s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I'm facing this error when I tried to run the creamy_text_field
Launching lib\main.dart on SM A515F in debug mode...
lib\main.dart:1
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/creamy_field-0.3.3/lib/src/creamy_text_field.dart:816:56: Error: No named parameter with the name 'nullOk'.
final NavigationMode mode = MediaQuery.of(context, nullOk: true)?.navigationMode ?? NavigationMode.traditional;
^^^^^^
/C:/flutter/packages/flutter/lib/src/widgets/media_query.dart:818:25: Context: Found this candidate, but the arguments don't match.
static MediaQueryData of(BuildContext context) {
^^
3
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 19s
Exception: Gradle task assembleDebug failed with exit code 1
and the flutter doctor result
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.26.0-13.0.pre.120, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.8.3)
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Community Edition (version 2020.3)
[√] VS Code (version 1.52.1)
[√] Connected device (4 available)
• No issues found!
Can't build app with flutter 2.2.1
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/creamy_field-0.4.0/lib/src/text_tools/creamy_editing_controller.dart:209:12: Error: The method 'CreamyEditingController.buildTextSpan' has fewer named arguments than those of overridden method 'TextEditingController.buildTextSpan'.
TextSpan buildTextSpan({TextStyle? style, required bool withComposing}) {
^
../../../Development/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}) {
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/creamy_field-0.4.0/lib/src/text_tools/creamy_editing_controller.dart:209:12: Error: The method 'CreamyEditingController.buildTextSpan' doesn't have the named parameter 'context' of overridden method 'TextEditingController.buildTextSpan'.
TextSpan buildTextSpan({TextStyle? style, required bool withComposing}) {
^
../../../Development/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}) {
^
Command PhaseScriptExecution failed with a nonzero exit code
MediaQuery.of(context, nullOk: true)
is the line, this has been deprecated it seems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.