Skip to content

Commit 90ae98f

Browse files
authored
Remove deprecated TextSelectionOverlay.fadeDuration (#134485)
Part of flutter/flutter#133171 This was deprecated in flutter/flutter#100381 Th replacement is to use `SelectionOverlay.fadeDuration` instead. This migration is supported by dart fix. â�
1 parent ce39d01 commit 90ae98f

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

packages/flutter/lib/src/widgets/text_selection.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,6 @@ class TextSelectionOverlay {
374374
/// {@endtemplate}
375375
final BuildContext context;
376376

377-
/// Controls the fade-in and fade-out animations for the toolbar and handles.
378-
@Deprecated(
379-
'Use `SelectionOverlay.fadeDuration` instead. '
380-
'This feature was deprecated after v2.12.0-4.1.pre.'
381-
)
382-
static const Duration fadeDuration = SelectionOverlay.fadeDuration;
383-
384377
// TODO(mpcomplete): what if the renderObject is removed or replaced, or
385378
// moves? Not sure what cases I need to handle, or how to handle them.
386379
/// The editable line in which the selected text is being displayed.

packages/flutter/test/widgets/text_selection_test.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ void main() {
9999
);
100100
}
101101

102-
test('TextSelectionOverlay.fadeDuration exist', () async {
103-
expect(TextSelectionOverlay.fadeDuration, SelectionOverlay.fadeDuration);
104-
});
105-
106102
testWidgets('a series of taps all call onTaps', (WidgetTester tester) async {
107103
await pumpGestureDetector(tester);
108104
await tester.tapAt(const Offset(200, 200));

0 commit comments

Comments
 (0)