File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,11 @@ class _PositionedIndicatorContainer extends StatelessWidget {
122
122
/// Position child widget in a similar way
123
123
/// to the built-in [RefreshIndicator] widget.
124
124
const _PositionedIndicatorContainer ({
125
- Key ? key,
126
125
required this .child,
127
126
required this .controller,
128
127
required this .displacement,
129
128
required this .edgeOffset,
130
- }) : super (key : key) ;
129
+ });
131
130
132
131
Alignment _getAlignement (IndicatorSide side) {
133
132
switch (side) {
@@ -219,8 +218,8 @@ class _InfiniteRotation extends StatefulWidget {
219
218
const _InfiniteRotation ({
220
219
required this .child,
221
220
required this .running,
222
- Key ? key,
223
- }) : super (key : key);
221
+ });
222
+
224
223
@override
225
224
_InfiniteRotationState createState () => _InfiniteRotationState ();
226
225
}
Original file line number Diff line number Diff line change @@ -187,12 +187,11 @@ class _PositionedIndicatorContainer extends StatelessWidget {
187
187
/// Position child widget in a similar way
188
188
/// to the built-in [RefreshIndicator] widget.
189
189
const _PositionedIndicatorContainer ({
190
- Key ? key,
191
190
required this .child,
192
191
required this .controller,
193
192
required this .displacement,
194
193
required this .edgeOffset,
195
- }) : super (key : key) ;
194
+ });
196
195
197
196
Alignment _getAlignement (IndicatorSide side) {
198
197
switch (side) {
@@ -289,8 +288,8 @@ class _InfiniteRotation extends StatefulWidget {
289
288
const _InfiniteRotation ({
290
289
required this .child,
291
290
required this .running,
292
- Key ? key,
293
- }) : super (key : key);
291
+ });
292
+
294
293
@override
295
294
_InfiniteRotationState createState () => _InfiniteRotationState ();
296
295
}
Original file line number Diff line number Diff line change @@ -48,12 +48,12 @@ class DefaultList extends StatelessWidget {
48
48
final ScrollPhysics physics;
49
49
50
50
const DefaultList ({
51
- Key ? key,
51
+ super . key,
52
52
required this .itemsCount,
53
53
this .reverse = false ,
54
54
this .controller,
55
55
this .physics = const AlwaysScrollableScrollPhysics (),
56
- }) : super (key : key) ;
56
+ });
57
57
58
58
@override
59
59
Widget build (BuildContext context) {
@@ -1205,6 +1205,7 @@ void main() {
1205
1205
IndicatorState .idle
1206
1206
]),
1207
1207
);
1208
+
1208
1209
/// Builder methos is called only on state changes
1209
1210
expect (rebuildsCount, equals (states.length));
1210
1211
expect (indicatorChangesCount, greaterThan (rebuildsCount));
You can’t perform that action at this time.
0 commit comments