Unverified Commit f5c1fb1d authored by Justin McCandless's avatar Justin McCandless Committed by GitHub

Remove deprecations from TextSelectionHandleControls instances (#124611)

Moves to a two-step deprecation process for context menus, avoiding immediate breaking changes.
parent 6e654d36
......@@ -80,11 +80,11 @@ class CupertinoDesktopTextSelectionControls extends TextSelectionControls {
}
}
// TODO(justinmc): Deprecate this after TextSelectionControls.buildToolbar is
// deleted, when users should migrate back to
// cupertinoDesktopTextSelectionControls.
// See https://github.com/flutter/flutter/pull/124262
/// Text selection handle controls that follow MacOS design conventions.
@Deprecated(
'Use `cupertinoDesktopTextSelectionControls` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
final TextSelectionControls cupertinoDesktopTextSelectionHandleControls =
_CupertinoDesktopTextSelectionHandleControls();
......
......@@ -184,11 +184,10 @@ class CupertinoTextSelectionControls extends TextSelectionControls {
}
}
// TODO(justinmc): Deprecate this after TextSelectionControls.buildToolbar is
// deleted, when users should migrate back to cupertinoTextSelectionControls.
// See https://github.com/flutter/flutter/pull/124262
/// Text selection handle controls that follow iOS design conventions.
@Deprecated(
'Use `cupertinoTextSelectionControls` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
final TextSelectionControls cupertinoTextSelectionHandleControls =
CupertinoTextSelectionHandleControls();
......
......@@ -95,12 +95,11 @@ class DesktopTextSelectionControls extends TextSelectionControls {
}
}
// TODO(justinmc): Deprecate this after TextSelectionControls.buildToolbar is
// deleted, when users should migrate back to desktopTextSelectionControls.
// See https://github.com/flutter/flutter/pull/124262
/// Desktop text selection handle controls that loosely follow Material design
/// conventions.
@Deprecated(
'Use `desktopTextSelectionControls` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
final TextSelectionControls desktopTextSelectionHandleControls =
_DesktopTextSelectionHandleControls();
......
......@@ -308,11 +308,10 @@ class _TextSelectionHandlePainter extends CustomPainter {
}
}
// TODO(justinmc): Deprecate this after TextSelectionControls.buildToolbar is
// deleted, when users should migrate back to materialTextSelectionControls.
// See https://github.com/flutter/flutter/pull/124262
/// Text selection handle controls that follow the Material Design specification.
@Deprecated(
'Use `materialTextSelectionControls` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
final TextSelectionControls materialTextSelectionHandleControls = MaterialTextSelectionHandleControls();
/// Text selection controls that follow the Material Design specification.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment