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

Stop using deprecated classess #69

Open
MacDeveloper1 opened this issue May 12, 2023 · 2 comments
Open

Stop using deprecated classess #69

MacDeveloper1 opened this issue May 12, 2023 · 2 comments

Comments

@MacDeveloper1
Copy link

MacDeveloper1 commented May 12, 2023

You use in your code ToolbarOptions which is

@Deprecated(
  'Use `contextMenuBuilder` instead. '
  'This feature was deprecated after v3.3.0-0.5.pre.',
)

Also in the TextSelectionControls

  @Deprecated(
    'Use `contextMenuBuilder` instead. '
    'This feature was deprecated after v3.3.0-0.5.pre.',
  )
  Widget buildToolbar(
    BuildContext context,
    Rect globalEditableRegion,
    double textLineHeight,
    Offset selectionMidpoint,
    List<TextSelectionPoint> endpoints,
    TextSelectionDelegate delegate,
    // TODO(chunhtai): Change to ValueListenable<ClipboardStatus>? once
    // migration is done. https://github.com/flutter/flutter/issues/99360
    ClipboardStatusNotifier? clipboardStatus,
    Offset? lastSecondaryTapDownPosition,
  );

Should be fixed.

@MacDeveloper1
Copy link
Author

Basically your code is buggy under flutter 3.10.0

@Sese-Schneider
Copy link
Member

@MacDeveloper1 can you elaborate why this is a bug?
Deprecated members are still supported, but discouraged from usage.
Also, if you have a fix feel free to open a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants