Flutter mobile throwing gradle build error while running this library (flutter_quill: ^2.4.0) #534
Unanswered
ParthParekh-dev
asked this question in
Mobile
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My issue is about [Mobile]
I have tried running
flutter-quill
package from pub.dev successfully before creating an issue here.C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/editor.dart:68:48: Error: Type 'TextLayoutMetrics' not found.
abstract class RenderAbstractEditor implements TextLayoutMetrics {
^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:798:3: Error: Type 'TextLayoutMetrics' not found.
TextLayoutMetrics get textLayoutMetrics => getRenderEditor()!;
^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:105:7: Error: The non-abstract class 'RawEditorState' is missing implementations for these members:
Try to either
class RawEditorState extends EditorState
^^^^^^^^^^^^^^
/C:/flutter/packages/flutter/lib/src/widgets/text_editing_action.dart:27:22: Context: 'TextEditingActionTarget.renderEditable' is defined here.
RenderEditable get renderEditable;
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:729:11: Error: Superclass has no method named 'copySelection'.
super.copySelection(cause);
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:730:40: Error: Getter not found: 'toolbar'.
if (cause == SelectionChangedCause.toolbar) {
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:749:35: Error: Getter not found: 'toolbar'.
SelectionChangedCause.toolbar,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:759:11: Error: Superclass has no method named 'cutSelection'.
super.cutSelection(cause);
^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:760:40: Error: Getter not found: 'toolbar'.
if (cause == SelectionChangedCause.toolbar) {
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:769:11: Error: Superclass has no method named 'pasteText'.
super.pasteText(cause); // ignore: unawaited_futures
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:770:40: Error: Getter not found: 'toolbar'.
if (cause == SelectionChangedCause.toolbar) {
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:779:11: Error: Superclass has no method named 'selectAll'.
super.selectAll(cause);
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_quill-2.4.0/lib/src/widgets/raw_editor.dart:780:40: Error: Getter not found: 'toolbar'.
if (cause == SelectionChangedCause.toolbar) {
^^^^^^^
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
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 56s
Exception: Gradle task assembleDebug failed with exit code 1
Beta Was this translation helpful? Give feedback.
All reactions