zefyr
zefyr copied to clipboard
Zefyr 0.11.0 cannot build on IOS
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.
Please provide the Flutter and Zefyr version you are using.
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.
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 Thank you very much. I'll try this and thanks again for this package.
@GyuriMajercsik thank you so much! Worked for me :)
@GyuriMajercsik thank you very much, it worked!
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!
add a property midpoint.scale(1,1) in the buildToobar widget