zefyr icon indicating copy to clipboard operation
zefyr copied to clipboard

Zefyr 0.11.0 cannot build on IOS

Open sudeshkumara opened this issue 4 years ago • 8 comments

Error : 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(

Location : zefyr-0.11.0/lib/src/widgets/selection.dart

final toolbar = controls.buildToolbar( context, editingRegion, block.preferredLineHeight, midpoint, endpoints, widget.selectionOverlay);

Zefyr this version working fine with android. But can not build the application on IOS. What are the 7 required arguments? Please help.

sudeshkumara avatar Jul 13 '20 06:07 sudeshkumara

Please provide the Flutter and Zefyr version you are using.

GyuriMajercsik avatar Jul 14 '20 10:07 GyuriMajercsik

Please provide the Flutter and Zefyr version you are using.

I'm using zefyr: ^0.11.0 and Flutter 1.17.5

Note that I solved the build error by giving 'null' to ClipboardStatusNotifier. Now the app working on ios as android. I still haven't had an issue. So now my selection.dart is as follows,

final toolbar = controls.buildToolbar( context, editingRegion, block.preferredLineHeight, midpoint, endpoints, widget.selectionOverlay, null);

But please let me know if this solution may cause problems.

sudeshkumara avatar Jul 14 '20 10:07 sudeshkumara

You could try out using master version of Zefyr instead of 0.11.0.

This would be the dependency:

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

GyuriMajercsik avatar Jul 14 '20 14:07 GyuriMajercsik

@GyuriMajercsik Thank you very much. I'll try this and thanks again for this package.

sudeshkumara avatar Jul 14 '20 14:07 sudeshkumara

@GyuriMajercsik thank you so much! Worked for me :)

Ahmadre avatar Jul 18 '20 00:07 Ahmadre

@GyuriMajercsik thank you very much, it worked!

rudineizilio avatar Oct 01 '20 19:10 rudineizilio

Dont work for me

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...

Compiler message:
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:45:9: Error: Type 'ClipboardStatusNotifier' not found.
  final ClipboardStatusNotifier _clipboardStatus =
        ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:600:9: Error: Type 'ClipboardStatusNotifier' not found.
  final ClipboardStatusNotifier clipboardStatus;
        ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/input.dart:193:3: Error: Type 'AutofillScope' not found.
  AutofillScope get currentAutofillScope => null;
  ^^^^^^^^^^^^^
Running pod install...                                          





../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/editable_text.dart:168:7: Error: No named parameter with the name 'cursor'.
      cursor: SystemMouseCursors.text,
      ^^^^^^
../../Documents/flutter/packages/flutter/lib/src/widgets/basic.dart:5873:9: Context: Found this candidate, but the arguments don't match.
  const MouseRegion({
        ^^^^^^^^^^^







../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:45:9: Error: 'ClipboardStatusNotifier' isn't a type.
  final ClipboardStatusNotifier _clipboardStatus =
        ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:46:23: Error: Method not found: 'ClipboardStatusNotifier'.
      kIsWeb ? null : ClipboardStatusNotifier();
                      ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:600:9: Error: 'ClipboardStatusNotifier' isn't a type.
  final ClipboardStatusNotifier clipboardStatus;
        ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/git/zefyr-646b3f6238bb1d9c78e1cd9f1b3fbe1d4f98b93f/packages/zefyr/lib/src/widgets/selection.dart:659:42: Error: Too many positional arguments: 6 allowed, but 7 found.
Try removing the extra positional arguments.
    final toolbar = controls.buildToolbar(
                                         ^

Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.2 19C57, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.3)
[✓] Connected device (1 available)

• No issues found!

d3roch4 avatar Oct 18 '20 21:10 d3roch4

add a property midpoint.scale(1,1) in the buildToobar widget

osamabuzdar avatar Mar 30 '21 13:03 osamabuzdar