memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.22k stars 551 forks source link

Issue with building project #400

Open Sesa1988 opened 4 years ago

Sesa1988 commented 4 years ago

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:

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( ^

yeras-is commented 4 years ago

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
Sesa1988 commented 4 years ago

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.

edwin-alvarez commented 4 years ago

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

319 , refer to @softmarshmallow