Unverified Commit 90ae98f5 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated TextSelectionOverlay.fadeDuration (#134485)

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. âœ
parent ce39d01d
...@@ -374,13 +374,6 @@ class TextSelectionOverlay { ...@@ -374,13 +374,6 @@ class TextSelectionOverlay {
/// {@endtemplate} /// {@endtemplate}
final BuildContext context; 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 // 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. // 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. /// The editable line in which the selected text is being displayed.
......
...@@ -99,10 +99,6 @@ void main() { ...@@ -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 { testWidgets('a series of taps all call onTaps', (WidgetTester tester) async {
await pumpGestureDetector(tester); await pumpGestureDetector(tester);
await tester.tapAt(const Offset(200, 200)); await tester.tapAt(const Offset(200, 200));
......
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