zefyr icon indicating copy to clipboard operation
zefyr copied to clipboard

Issue with building project

Open Sesa1988 opened this issue 4 years ago • 3 comments

Steps to Reproduce

Platform: Android Latest Flutter & Dart Version Stable channel

  1. Add editor on new page route
  2. Build project

Logs

./../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/input.dart:11:7: Error: The non-abstract class 'InputConnectionController' 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 InputConnectionController implements TextInputClient { ^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../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); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ./../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/selection.dart:594:42: Error: Too few positional arguments: 7 required, 6 given. final toolbar = controls.buildToolbar( ^

Sesa1988 avatar Sep 06 '20 18:09 Sesa1988

I've got same problem doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.20.2, on Microsoft Windows [Version 10.0.18363.1016], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.48.2)
[√] Connected device (4 available)

! Doctor found issues in 1 category.

pubspec


environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  supercharged: ^1.10.0
  zefyr: ^0.11.0
  notus: ^0.1.5

yeras-is avatar Sep 07 '20 14:09 yeras-is

add this instead in your pubspec.yaml for development:

zefyr: git: url: https://github.com/memspace/zefyr.git path: packages/zefyr

but this is just a production ready fix in my opinion.

Sesa1988 avatar Sep 07 '20 17:09 Sesa1988

I tried @SergejSachs, but somehow it was still failing. However, the following post helped me out.

#319 , refer to @softmarshmallow

edwin-alvarez avatar Sep 12 '20 16:09 edwin-alvarez