Skip to content

Commit

Permalink
Remove deprecated TextSelectionOverlay.fadeDuration (#134485)
Browse files Browse the repository at this point in the history
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. â�
  • Loading branch information
Piinks authored Sep 12, 2023
1 parent ce39d01 commit 90ae98f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions packages/flutter/lib/src/widgets/text_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions packages/flutter/test/widgets/text_selection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 90ae98f

Please sign in to comment.