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
This commit is contained in:
@@ -26,8 +26,8 @@ import 'transitions.dart';
|
||||
///
|
||||
/// [GlowingOverscrollIndicator] generates [OverscrollIndicatorNotification]
|
||||
/// before showing an overscroll indication. To prevent the indicator from
|
||||
/// showing the indication, call [OverscrollIndicatorNotification.disallowGlow]
|
||||
/// on the notification.
|
||||
/// showing the indication, call
|
||||
/// [OverscrollIndicatorNotification.disallowIndicator] on the notification.
|
||||
///
|
||||
/// Created automatically by [ScrollBehavior.buildOverscrollIndicator] on platforms
|
||||
/// (e.g., Android) that commonly use this type of overscroll indication.
|
||||
@@ -999,16 +999,6 @@ class OverscrollIndicatorNotification extends Notification with ViewportNotifica
|
||||
/// Defaults to true, cannot be null.
|
||||
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.
|
||||
void disallowIndicator() {
|
||||
accepted = false;
|
||||
|
||||
Reference in New Issue
Block a user