Skip to content

Commit 73ae18b

Browse files
committed
⬆️ update sdk version to ^3.0.0 and refactor codes by lint
1 parent 81fe296 commit 73ae18b

File tree

3 files changed

+71
-58
lines changed

3 files changed

+71
-58
lines changed

lib/lazy_load_indexed_stack.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class LazyLoadIndexedStack extends StatefulWidget {
3939
}
4040

4141
@override
42-
_LazyLoadIndexedStackState createState() => _LazyLoadIndexedStackState();
42+
LazyLoadIndexedStackState createState() => LazyLoadIndexedStackState();
4343
}
4444

45-
class _LazyLoadIndexedStackState extends State<LazyLoadIndexedStack> {
45+
class LazyLoadIndexedStackState extends State<LazyLoadIndexedStack> {
4646
late List<Widget> _children;
4747
final _stackKey = GlobalKey();
4848

@@ -65,10 +65,10 @@ class _LazyLoadIndexedStackState extends State<LazyLoadIndexedStack> {
6565
return IndexedStack(
6666
key: _stackKey,
6767
index: widget.index,
68-
children: _children,
6968
alignment: widget.alignment,
7069
textDirection: widget.textDirection,
7170
sizing: widget.sizing,
71+
children: _children,
7272
);
7373
}
7474

pubspec.lock

Lines changed: 66 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,50 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.8.2"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
23-
source: hosted
24-
version: "1.2.0"
25-
charcode:
26-
dependency: transitive
27-
description:
28-
name: charcode
29-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
3026
source: hosted
31-
version: "1.3.1"
27+
version: "1.3.0"
3228
clock:
3329
dependency: transitive
3430
description:
3531
name: clock
36-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3734
source: hosted
38-
version: "1.1.0"
35+
version: "1.1.1"
3936
collection:
4037
dependency: transitive
4138
description:
4239
name: collection
43-
url: "https://pub.dartlang.org"
40+
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.15.0"
43+
version: "1.17.1"
4644
fake_async:
4745
dependency: transitive
4846
description:
4947
name: fake_async
50-
url: "https://pub.dartlang.org"
48+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
49+
url: "https://pub.dev"
5150
source: hosted
52-
version: "1.2.0"
51+
version: "1.3.1"
5352
flutter:
5453
dependency: "direct main"
5554
description: flutter
@@ -59,49 +58,63 @@ packages:
5958
dependency: "direct dev"
6059
description:
6160
name: flutter_lints
62-
url: "https://pub.dartlang.org"
61+
sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
62+
url: "https://pub.dev"
6363
source: hosted
64-
version: "1.0.4"
64+
version: "2.0.1"
6565
flutter_test:
6666
dependency: "direct dev"
6767
description: flutter
6868
source: sdk
6969
version: "0.0.0"
70+
js:
71+
dependency: transitive
72+
description:
73+
name: js
74+
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
75+
url: "https://pub.dev"
76+
source: hosted
77+
version: "0.6.7"
7078
lints:
7179
dependency: transitive
7280
description:
7381
name: lints
74-
url: "https://pub.dartlang.org"
82+
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
83+
url: "https://pub.dev"
7584
source: hosted
76-
version: "1.0.1"
85+
version: "2.1.1"
7786
matcher:
7887
dependency: transitive
7988
description:
8089
name: matcher
81-
url: "https://pub.dartlang.org"
90+
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
91+
url: "https://pub.dev"
8292
source: hosted
83-
version: "0.12.11"
93+
version: "0.12.15"
8494
material_color_utilities:
8595
dependency: transitive
8696
description:
8797
name: material_color_utilities
88-
url: "https://pub.dartlang.org"
98+
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
99+
url: "https://pub.dev"
89100
source: hosted
90-
version: "0.1.3"
101+
version: "0.2.0"
91102
meta:
92103
dependency: transitive
93104
description:
94105
name: meta
95-
url: "https://pub.dartlang.org"
106+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
107+
url: "https://pub.dev"
96108
source: hosted
97-
version: "1.7.0"
109+
version: "1.9.1"
98110
path:
99111
dependency: transitive
100112
description:
101113
name: path
102-
url: "https://pub.dartlang.org"
114+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
115+
url: "https://pub.dev"
103116
source: hosted
104-
version: "1.8.0"
117+
version: "1.8.3"
105118
sky_engine:
106119
dependency: transitive
107120
description: flutter
@@ -111,57 +124,57 @@ packages:
111124
dependency: transitive
112125
description:
113126
name: source_span
114-
url: "https://pub.dartlang.org"
127+
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
128+
url: "https://pub.dev"
115129
source: hosted
116-
version: "1.8.1"
130+
version: "1.9.1"
117131
stack_trace:
118132
dependency: transitive
119133
description:
120134
name: stack_trace
121-
url: "https://pub.dartlang.org"
135+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
136+
url: "https://pub.dev"
122137
source: hosted
123-
version: "1.10.0"
138+
version: "1.11.0"
124139
stream_channel:
125140
dependency: transitive
126141
description:
127142
name: stream_channel
128-
url: "https://pub.dartlang.org"
143+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
144+
url: "https://pub.dev"
129145
source: hosted
130-
version: "2.1.0"
146+
version: "2.1.1"
131147
string_scanner:
132148
dependency: transitive
133149
description:
134150
name: string_scanner
135-
url: "https://pub.dartlang.org"
151+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
152+
url: "https://pub.dev"
136153
source: hosted
137-
version: "1.1.0"
154+
version: "1.2.0"
138155
term_glyph:
139156
dependency: transitive
140157
description:
141158
name: term_glyph
142-
url: "https://pub.dartlang.org"
159+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
160+
url: "https://pub.dev"
143161
source: hosted
144-
version: "1.2.0"
162+
version: "1.2.1"
145163
test_api:
146164
dependency: transitive
147165
description:
148166
name: test_api
149-
url: "https://pub.dartlang.org"
167+
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
168+
url: "https://pub.dev"
150169
source: hosted
151-
version: "0.4.8"
152-
typed_data:
153-
dependency: transitive
154-
description:
155-
name: typed_data
156-
url: "https://pub.dartlang.org"
157-
source: hosted
158-
version: "1.3.0"
170+
version: "0.5.1"
159171
vector_math:
160172
dependency: transitive
161173
description:
162174
name: vector_math
163-
url: "https://pub.dartlang.org"
175+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
176+
url: "https://pub.dev"
164177
source: hosted
165-
version: "2.1.1"
178+
version: "2.1.4"
166179
sdks:
167-
dart: ">=2.16.0 <3.0.0"
180+
dart: ">=3.0.0 <4.0.0"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage: https://github.com/okaryo/lazy_load_indexed_stack
55
repository: https://github.com/okaryo/lazy_load_indexed_stack
66

77
environment:
8-
sdk: ">=2.16.0 <3.0.0"
8+
sdk: ">=3.0.0 <4.0.0"
99

1010
dependencies:
1111
flutter:
@@ -14,4 +14,4 @@ dependencies:
1414
dev_dependencies:
1515
flutter_test:
1616
sdk: flutter
17-
flutter_lints: ^1.0.4
17+
flutter_lints: ^2.0.1

0 commit comments

Comments
 (0)