We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3578fc commit d5e58c6Copy full SHA for d5e58c6
mdc_100_series/lib/backdrop.dart
@@ -146,16 +146,11 @@ class _BackdropState extends State<Backdrop>
146
@override
147
void didUpdateWidget(Backdrop old) {
148
super.didUpdateWidget(old);
149
+
150
if (widget.currentCategory != old.currentCategory) {
- setState(() {
151
- _controller.fling(
152
- velocity:
153
- _frontLayerVisible ? -_kFlingVelocity : _kFlingVelocity);
154
- });
+ _toggleBackdropLayerVisibility();
155
} else if (!_frontLayerVisible) {
156
157
- _controller.fling(velocity: _kFlingVelocity);
158
+ _controller.fling(velocity: _kFlingVelocity);
159
}
160
161
0 commit comments