Unverified Commit cf83b790 authored by Matt Sullivan's avatar Matt Sullivan Committed by GitHub

Chevrons fade out completely on month picker scroll event (#19422)

parent 2af2a082
...@@ -536,9 +536,9 @@ class _MonthPickerState extends State<MonthPicker> with SingleTickerProviderStat ...@@ -536,9 +536,9 @@ class _MonthPickerState extends State<MonthPicker> with SingleTickerProviderStat
// Setup the fade animation for chevrons // Setup the fade animation for chevrons
_chevronOpacityController = new AnimationController( _chevronOpacityController = new AnimationController(
duration: const Duration(milliseconds: 500), vsync: this duration: const Duration(milliseconds: 250), vsync: this
); );
_chevronOpacityAnimation = new Tween<double>(begin: 1.0, end: 0.5).animate( _chevronOpacityAnimation = new Tween<double>(begin: 1.0, end: 0.0).animate(
new CurvedAnimation( new CurvedAnimation(
parent: _chevronOpacityController, parent: _chevronOpacityController,
curve: Curves.easeInOut, curve: Curves.easeInOut,
......
...@@ -671,7 +671,7 @@ void _tests() { ...@@ -671,7 +671,7 @@ void _tests() {
await gesture.moveBy(const Offset(50.0, 100.0)); await gesture.moveBy(const Offset(50.0, 100.0));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
for(RenderAnimatedOpacity renderer in chevronRenderers) { for(RenderAnimatedOpacity renderer in chevronRenderers) {
expect(renderer.opacity.value, equals(0.5)); expect(renderer.opacity.value, equals(0.0));
expect(renderer.opacity.status, equals(AnimationStatus.completed)); expect(renderer.opacity.status, equals(AnimationStatus.completed));
} }
......
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