Skip to content

Commit c1e2378

Browse files
PiinksCasey Hillers
authored and
Casey Hillers
committed
Remove deprecated OverscrollIndicatorNotification.disallowGlow (flutter#127050)
The deprecated OverscrollIndicatorNotification.disallowGlow has expired and is removed in the PR. The replacement is OverscrollIndicatorNotification.disallowIndicator. This deprecation was introduced in flutter#87839 when the StretchingOverscrollIndicator was added. The name change made it clearer since there is now more than one overscroll indicator. This change is supported by dart fix. � Part of flutter#127042
1 parent 4d74858 commit c1e2378

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import 'transitions.dart';
2626
///
2727
/// [GlowingOverscrollIndicator] generates [OverscrollIndicatorNotification]
2828
/// before showing an overscroll indication. To prevent the indicator from
29-
/// showing the indication, call [OverscrollIndicatorNotification.disallowGlow]
30-
/// on the notification.
29+
/// showing the indication, call
30+
/// [OverscrollIndicatorNotification.disallowIndicator] on the notification.
3131
///
3232
/// Created automatically by [ScrollBehavior.buildOverscrollIndicator] on platforms
3333
/// (e.g., Android) that commonly use this type of overscroll indication.
@@ -999,16 +999,6 @@ class OverscrollIndicatorNotification extends Notification with ViewportNotifica
999999
/// Defaults to true, cannot be null.
10001000
bool accepted = true;
10011001

1002-
/// Call this method if the glow should be prevented. This method is
1003-
/// deprecated in favor of [disallowIndicator].
1004-
@Deprecated(
1005-
'Use disallowIndicator instead. '
1006-
'This feature was deprecated after v2.5.0-6.0.pre.',
1007-
)
1008-
void disallowGlow() {
1009-
accepted = false;
1010-
}
1011-
10121002
/// Call this method if the overscroll indicator should be prevented.
10131003
void disallowIndicator() {
10141004
accepted = false;

0 commit comments

Comments
 (0)