Skip to content

Commit 6bab507

Browse files
author
Kamil Klyta
committed
Add key argument to custom refresh indicator widget
1 parent c3cf8d6 commit 6bab507

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/custom_refresh_indicator.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class CustomRefreshIndicator extends StatefulWidget {
6868
final IndicatorController controller;
6969

7070
CustomRefreshIndicator({
71+
Key key,
7172
@required this.child,
7273
@required this.onRefresh,
7374
@required this.builder,
@@ -80,7 +81,8 @@ class CustomRefreshIndicator extends StatefulWidget {
8081
this.leadingGlowVisible = false,
8182
this.trailingGlowVisible = true,
8283
}) : assert(child != null, 'child argument cannot be null'),
83-
assert(builder != null, 'builder argument cannot be null');
84+
assert(builder != null, 'builder argument cannot be null'),
85+
super(key: key);
8486

8587
@override
8688
_CustomRefreshIndicatorState createState() => _CustomRefreshIndicatorState();

0 commit comments

Comments
 (0)