Unverified Commit e8b7889d authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated OverscrollIndicatorNotification.disallowGlow (#127050)

The deprecated OverscrollIndicatorNotification.disallowGlow has expired and is removed in the PR. The replacement is OverscrollIndicatorNotification.disallowIndicator. This deprecation was introduced in https://github.com/flutter/flutter/pull/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 https://github.com/flutter/flutter/issues/127042
parent d211dc14
...@@ -26,8 +26,8 @@ import 'transitions.dart'; ...@@ -26,8 +26,8 @@ import 'transitions.dart';
/// ///
/// [GlowingOverscrollIndicator] generates [OverscrollIndicatorNotification] /// [GlowingOverscrollIndicator] generates [OverscrollIndicatorNotification]
/// before showing an overscroll indication. To prevent the indicator from /// before showing an overscroll indication. To prevent the indicator from
/// showing the indication, call [OverscrollIndicatorNotification.disallowGlow] /// showing the indication, call
/// on the notification. /// [OverscrollIndicatorNotification.disallowIndicator] on the notification.
/// ///
/// Created automatically by [ScrollBehavior.buildOverscrollIndicator] on platforms /// Created automatically by [ScrollBehavior.buildOverscrollIndicator] on platforms
/// (e.g., Android) that commonly use this type of overscroll indication. /// (e.g., Android) that commonly use this type of overscroll indication.
...@@ -999,16 +999,6 @@ class OverscrollIndicatorNotification extends Notification with ViewportNotifica ...@@ -999,16 +999,6 @@ class OverscrollIndicatorNotification extends Notification with ViewportNotifica
/// Defaults to true, cannot be null. /// Defaults to true, cannot be null.
bool accepted = true; bool accepted = true;
/// Call this method if the glow should be prevented. This method is
/// deprecated in favor of [disallowIndicator].
@Deprecated(
'Use disallowIndicator instead. '
'This feature was deprecated after v2.5.0-6.0.pre.',
)
void disallowGlow() {
accepted = false;
}
/// Call this method if the overscroll indicator should be prevented. /// Call this method if the overscroll indicator should be prevented.
void disallowIndicator() { void disallowIndicator() {
accepted = false; accepted = false;
......
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