From e4f2d61b5ce09f642715a7eb2e11977d73f21bb7 Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Thu, 6 Apr 2023 14:00:22 -0700 Subject: [PATCH] TextSelectionHandleControls deprecation deletion timeframe (#124262) Make sure the removal of deprecated APIs TextSelectionControls.buildToolbar and TextSelectionHandleControls happen in two separate steps. Will make a tricky migration situation a little easier for affected users. --- packages/flutter/lib/src/widgets/text_selection.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart index a471b47f3d..f0c05e9e5c 100644 --- a/packages/flutter/lib/src/widgets/text_selection.dart +++ b/packages/flutter/lib/src/widgets/text_selection.dart @@ -3270,12 +3270,11 @@ enum ClipboardStatus { notPasteable, } +// TODO(justinmc): Deprecate this after TextSelectionControls.buildToolbar is +// deleted, when users should migrate back to TextSelectionControls.buildHandle. +// See https://github.com/flutter/flutter/pull/124262 /// [TextSelectionControls] that specifically do not manage the toolbar in order /// to leave that to [EditableText.contextMenuBuilder]. -@Deprecated( - 'Use `TextSelectionControls`. ' - 'This feature was deprecated after v3.3.0-0.5.pre.', -) mixin TextSelectionHandleControls on TextSelectionControls { @override Widget buildToolbar(