memspace / zefyr

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

Try correcting the name to the name of an existing setter, or defining a setter or field named 'textEditingValue'. #607

Closed meg4cyberc4t closed 1 year ago

meg4cyberc4t commented 2 years ago

Steps to Reproduce

I am a trial dev version v1.0.0 in flutter 3.0.0. At startup, the library crashes, as they removed the necessary setter

Logs

/opt/homebrew/Caskroom/flutter/3.0.0/flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-1.0.0-rc.5/lib/src/widgets/text_selection.dart:371:24: Error: The setter 'textEditingValue' isn't defined for the class 'TextSelectionDelegate'.
- 'TextSelectionDelegate' is from 'package:flutter/src/services/text_input.dart' ('/opt/homebrew/Caskroom/flutter/3.0.0/flutter/packages/flutter/lib/src/services/text_input.dart').
package:flutter/…/services/text_input.dart:1

Try correcting the name to the name of an existing setter, or defining a setter or field named 'textEditingValue'.
    selectionDelegate!.textEditingValue =
                       ^^^^^^^^^^^^^^^^
2

FAILURE: Build failed with an exception.
cybercat@MacBook-Air-Igor cathubs % flutter doctor -v    
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.4 21F79 darwin-arm, locale ru-RU)
    • Flutter version 3.0.0 at /opt/homebrew/Caskroom/flutter/3.0.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (8 days ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/cybercat/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Users/cybercat/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8512546/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/cybercat/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8512546/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.67.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (4 available)
    • SM G780G (mobile)                   • RF8RB1KR9LY                          • android-arm64  • Android 12 (API 31)
    • iPhone SE (3rd generation) (mobile) • 0A9564EC-6F6D-41A3-85A2-773C389A7B19 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)                     • macos                                • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 101.0.4951.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
InAnadea commented 2 years ago

+1

: Error: The setter 'textEditingValue' isn't defined for the class 'TextSelectionDelegate'.
../…/widgets/text_selection.dart:371
- 'TextSelectionDelegate' is from 'package:flutter/src/services/text_input.dart' ('../../fvm/versions/3.0.0/packages/flutter/lib/src/services/text_input.dart').
package:flutter/…/services/text_input.dart:1
    Try correcting the name to the name of an existing setter, or defining a setter or field named 'textEditingValue'.
        selectionDelegate!.textEditingValue =
                           ^^^^^^^^^^^^^^^^
EloWeld commented 1 year ago

+1. Maybe you use zephyr package in project

Amir-P commented 1 year ago

Unfortunately the package is outdated and is not compatible with Flutter v3. You can use Fleather for now.

gyuri-fluttech commented 1 year ago

or flutter_quill

cgestes commented 1 year ago

have a look at our fork: