From 90ae98f576424a738f047bad1f75d725c267a25d Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Tue, 12 Sep 2023 12:14:18 -0500 Subject: [PATCH] Remove deprecated TextSelectionOverlay.fadeDuration (#134485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of https://github.com/flutter/flutter/issues/133171 This was deprecated in https://github.com/flutter/flutter/pull/100381 Th replacement is to use `SelectionOverlay.fadeDuration` instead. This migration is supported by dart fix. ✠--- packages/flutter/lib/src/widgets/text_selection.dart | 7 ------- packages/flutter/test/widgets/text_selection_test.dart | 4 ---- 2 files changed, 11 deletions(-) diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart index 12d780ca72c6..e805b572793d 100644 --- a/packages/flutter/lib/src/widgets/text_selection.dart +++ b/packages/flutter/lib/src/widgets/text_selection.dart @@ -374,13 +374,6 @@ class TextSelectionOverlay { /// {@endtemplate} final BuildContext context; - /// Controls the fade-in and fade-out animations for the toolbar and handles. - @Deprecated( - 'Use `SelectionOverlay.fadeDuration` instead. ' - 'This feature was deprecated after v2.12.0-4.1.pre.' - ) - static const Duration fadeDuration = SelectionOverlay.fadeDuration; - // TODO(mpcomplete): what if the renderObject is removed or replaced, or // moves? Not sure what cases I need to handle, or how to handle them. /// The editable line in which the selected text is being displayed. diff --git a/packages/flutter/test/widgets/text_selection_test.dart b/packages/flutter/test/widgets/text_selection_test.dart index 67d49cb5e327..b1b51f021a41 100644 --- a/packages/flutter/test/widgets/text_selection_test.dart +++ b/packages/flutter/test/widgets/text_selection_test.dart @@ -99,10 +99,6 @@ void main() { ); } - test('TextSelectionOverlay.fadeDuration exist', () async { - expect(TextSelectionOverlay.fadeDuration, SelectionOverlay.fadeDuration); - }); - testWidgets('a series of taps all call onTaps', (WidgetTester tester) async { await pumpGestureDetector(tester); await tester.tapAt(const Offset(200, 200));