File tree Expand file tree Collapse file tree 6 files changed +27
-8
lines changed Expand file tree Collapse file tree 6 files changed +27
-8
lines changed Original file line number Diff line number Diff line change
1
+ include : package:flutter_lints/flutter.yaml
2
+
3
+ analyzer :
4
+ exclude :
5
+ # workaround for https://github.com/dart-lang/sdk/issues/42910
6
+ - ' example/**'
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ packages:
66
66
path: ".."
67
67
relative: true
68
68
source: path
69
- version: "0.0.1 "
69
+ version: "0.1.0 "
70
70
matcher:
71
71
dependency: transitive
72
72
description:
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ class _CycledListViewState extends State<CycledListView> {
172
172
final itemCount = widget.itemCount;
173
173
return SliverChildBuilderDelegate (
174
174
(context, index) {
175
- if (index == 0 ) return SizedBox .shrink ();
175
+ if (index == 0 ) return const SizedBox .shrink ();
176
176
return widget.itemBuilder (
177
177
context, - index % widget.contentCount, - index);
178
178
},
@@ -206,7 +206,7 @@ class _CycledListViewState extends State<CycledListView> {
206
206
class CycledScrollController extends ScrollController {
207
207
/// Creates a new [CycledScrollController]
208
208
CycledScrollController ({
209
- this . initialScrollOffset = 0.0 ,
209
+ double initialScrollOffset = 0.0 ,
210
210
bool keepScrollOffset = true ,
211
211
String ? debugLabel,
212
212
}) : super (
@@ -215,8 +215,6 @@ class CycledScrollController extends ScrollController {
215
215
debugLabel: debugLabel,
216
216
);
217
217
218
- final double initialScrollOffset;
219
-
220
218
ScrollDirection get currentScrollDirection => position.userScrollDirection;
221
219
222
220
@override
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ class __ContentState extends State<_Content>
339
339
scrollDirection: Axis .horizontal,
340
340
contentCount: widget.contentLength,
341
341
controller: _pageController,
342
- physics: PageScrollPhysics (),
342
+ physics: const PageScrollPhysics (),
343
343
itemBuilder: (context, modIndex, rawIndex) => SizedBox (
344
344
width: widget.size.width,
345
345
child: ValueListenableBuilder <int >(
@@ -434,7 +434,7 @@ class _CenteredIndicator extends StatelessWidget {
434
434
valueListenable: size,
435
435
builder: (context, value, _) => Center (
436
436
child: Transform .translate (
437
- offset: Offset (0.0 , - 2.0 ),
437
+ offset: const Offset (0.0 , - 2.0 ),
438
438
child: Container (
439
439
height: 2.0 ,
440
440
decoration: BoxDecoration (
Original file line number Diff line number Diff line change @@ -55,11 +55,25 @@ packages:
55
55
description: flutter
56
56
source: sdk
57
57
version: "0.0.0"
58
+ flutter_lints:
59
+ dependency: "direct dev"
60
+ description:
61
+ name: flutter_lints
62
+ url: "https://pub.dartlang.org"
63
+ source: hosted
64
+ version: "1.0.4"
58
65
flutter_test:
59
66
dependency: "direct dev"
60
67
description: flutter
61
68
source: sdk
62
69
version: "0.0.0"
70
+ lints:
71
+ dependency: transitive
72
+ description:
73
+ name: lints
74
+ url: "https://pub.dartlang.org"
75
+ source: hosted
76
+ version: "1.0.1"
63
77
matcher:
64
78
dependency: transitive
65
79
description:
Original file line number Diff line number Diff line change 1
1
name : infinite_scroll_tab_view
2
2
description : A Flutter package for tab view component that can scroll infinitely.
3
- version : 0.0.1
3
+ version : 0.1.0
4
4
repository : https://github.com/cb-cloud/flutter_infinite_scroll_tab_view
5
5
6
6
environment :
@@ -12,6 +12,7 @@ dependencies:
12
12
sdk : flutter
13
13
14
14
dev_dependencies :
15
+ flutter_lints : ^1.0.4
15
16
flutter_test :
16
17
sdk : flutter
17
18
You can’t perform that action at this time.
0 commit comments