Skip to content

Commit d562e1a

Browse files
authored
Fixed some analysis errors. (flutter#9967)
1 parent f7d62aa commit d562e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/flutter/lib/src/material/refresh_indicator.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
308308
_mode = _RefreshIndicatorMode.snap;
309309
_positionController
310310
.animateTo(1.0 / _kDragSizeFactorLimit, duration: _kIndicatorSnapDuration)
311-
.then((Null value) {
311+
.then<Null>((Null value) {
312312
if (mounted && _mode == _RefreshIndicatorMode.snap) {
313313
assert(widget.onRefresh != null);
314314
setState(() {

packages/flutter/lib/src/widgets/animated_list.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class AnimatedListState extends State<AnimatedList> with TickerProviderStateMixi
291291
_itemsCount += 1;
292292
});
293293

294-
controller.forward().then((Null value) {
294+
controller.forward().then<Null>((Null value) {
295295
_removeActiveItemAt(_incomingItems, incomingItem.itemIndex).controller.dispose();
296296
});
297297
}
@@ -326,7 +326,7 @@ class AnimatedListState extends State<AnimatedList> with TickerProviderStateMixi
326326
..sort();
327327
});
328328

329-
controller.reverse().then((Null value) {
329+
controller.reverse().then<Null>((Null value) {
330330
_removeActiveItemAt(_outgoingItems, outgoingItem.itemIndex).controller.dispose();
331331

332332
// Decrement the incoming and outgoing item indices to account

0 commit comments

Comments
 (0)