mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove vsync deprecation (#90293)
This commit is contained in:
parent
7214097f02
commit
eda41e5720
@ -498,24 +498,11 @@ class FloatingHeaderSnapConfiguration {
|
|||||||
/// Creates an object that specifies how a floating header is to be "snapped"
|
/// Creates an object that specifies how a floating header is to be "snapped"
|
||||||
/// (animated) into or out of view.
|
/// (animated) into or out of view.
|
||||||
FloatingHeaderSnapConfiguration({
|
FloatingHeaderSnapConfiguration({
|
||||||
@Deprecated(
|
|
||||||
'Specify SliverPersistentHeaderDelegate.vsync instead. '
|
|
||||||
'This feature was deprecated after v1.19.0.',
|
|
||||||
)
|
|
||||||
this.vsync,
|
|
||||||
this.curve = Curves.ease,
|
this.curve = Curves.ease,
|
||||||
this.duration = const Duration(milliseconds: 300),
|
this.duration = const Duration(milliseconds: 300),
|
||||||
}) : assert(curve != null),
|
}) : assert(curve != null),
|
||||||
assert(duration != null);
|
assert(duration != null);
|
||||||
|
|
||||||
/// The [TickerProvider] for the [AnimationController] that causes a floating
|
|
||||||
/// header to snap in or out of view.
|
|
||||||
@Deprecated(
|
|
||||||
'Specify SliverPersistentHeaderDelegate.vsync instead. '
|
|
||||||
'This feature was deprecated after v1.19.0.',
|
|
||||||
)
|
|
||||||
final TickerProvider? vsync;
|
|
||||||
|
|
||||||
/// The snap animation curve.
|
/// The snap animation curve.
|
||||||
final Curve curve;
|
final Curve curve;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user