Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 The method '_FluentTextSelectionControls.buildHandle' has fewer positional arguments than those of overridden method 'TextSelectionControls.buildHandle'. #69

Closed
slimyjimmy opened this issue Sep 17, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@slimyjimmy
Copy link

slimyjimmy commented Sep 17, 2021

First of all: Thanks for your work.

The app that I tried to incorporate fluent_ui (3.1.0) into, fails to compile.
I get the following error messages:

../../flutter/.pub-cache/hosted/pub.dartlang.org/fluent_ui-3.1.0/lib/src/controls/form/selection_controls.dart:50:10: Error: The method '_FluentTextSelectionControls.buildHandle' has fewer positional arguments than those of overridden method 'TextSelectionControls.buildHandle'.
Widget buildHandle(

../../flutter/packages/flutter/lib/src/widgets/text_selection.dart:123:10: Context: This is the overridden method ('buildHandle').
Widget buildHandle(BuildContext context, TextSelectionHandleType type, double textLineHeight, [VoidCallback? onTap, double? startGlyphHeight, double? endGlyphHeight]);

../../flutter/.pub-cache/hosted/pub.dartlang.org/fluent_ui-3.1.0/lib/src/controls/form/selection_controls.dart:61:10: Error: The method '_FluentTextSelectionControls.getHandleAnchor' has fewer positional arguments than those of overridden method 'TextSelectionControls.getHandleAnchor'.
Offset getHandleAnchor(TextSelectionHandleType type, double textLineHeight) {

../../flutter/packages/flutter/lib/src/widgets/text_selection.dart:128:10: Context: This is the overridden method ('getHandleAnchor').
Offset getHandleAnchor(TextSelectionHandleType type, double textLineHeight, [double? startGlyphHeight, double? endGlyphHeight]);

Failed to compile

@bostrot
Copy link

bostrot commented Sep 17, 2021

Seems like this is an issue with v3.1.0. Using the master branch worked for me:

fluent_ui:
  git: https://github.com/bdlukaa/fluent_ui.git

@slimyjimmy
Copy link
Author

Using the master branch works for me, too

@tobiasht
Copy link
Contributor

I am using the master branch, but it is not working for me. I need to stay on 2.2.3 stable to compile the application

@bdlukaa
Copy link
Owner

bdlukaa commented Sep 18, 2021

Published version 3.2.0 that fixes this issue!

@bdlukaa bdlukaa closed this as completed Sep 18, 2021
@bdlukaa bdlukaa added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants