Skip to content

Commit b4888d7

Browse files
committed
⬆️ update example code for sdk v3.0.0
1 parent 73ae18b commit b4888d7

File tree

3 files changed

+106
-58
lines changed

3 files changed

+106
-58
lines changed

example/.metadata

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled and should not be manually edited.
4+
# This file should be version controlled.
55

66
version:
7-
revision: d79295af24c3ed621c33713ecda14ad196fd9c31
8-
channel: unknown
7+
revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
8+
channel: stable
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
17+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
18+
- platform: android
19+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
20+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
21+
- platform: ios
22+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
23+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
24+
- platform: linux
25+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
26+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
27+
- platform: macos
28+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
29+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
30+
- platform: web
31+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
32+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
33+
- platform: windows
34+
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
35+
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/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,14 +58,23 @@ 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
lazy_load_indexed_stack:
7179
dependency: "direct main"
7280
description:
@@ -78,37 +86,42 @@ packages:
7886
dependency: transitive
7987
description:
8088
name: lints
81-
url: "https://pub.dartlang.org"
89+
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
90+
url: "https://pub.dev"
8291
source: hosted
83-
version: "1.0.1"
92+
version: "2.1.1"
8493
matcher:
8594
dependency: transitive
8695
description:
8796
name: matcher
88-
url: "https://pub.dartlang.org"
97+
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
98+
url: "https://pub.dev"
8999
source: hosted
90-
version: "0.12.11"
100+
version: "0.12.15"
91101
material_color_utilities:
92102
dependency: transitive
93103
description:
94104
name: material_color_utilities
95-
url: "https://pub.dartlang.org"
105+
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
106+
url: "https://pub.dev"
96107
source: hosted
97-
version: "0.1.3"
108+
version: "0.2.0"
98109
meta:
99110
dependency: transitive
100111
description:
101112
name: meta
102-
url: "https://pub.dartlang.org"
113+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
114+
url: "https://pub.dev"
103115
source: hosted
104-
version: "1.7.0"
116+
version: "1.9.1"
105117
path:
106118
dependency: transitive
107119
description:
108120
name: path
109-
url: "https://pub.dartlang.org"
121+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
122+
url: "https://pub.dev"
110123
source: hosted
111-
version: "1.8.0"
124+
version: "1.8.3"
112125
sky_engine:
113126
dependency: transitive
114127
description: flutter
@@ -118,57 +131,57 @@ packages:
118131
dependency: transitive
119132
description:
120133
name: source_span
121-
url: "https://pub.dartlang.org"
134+
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
135+
url: "https://pub.dev"
122136
source: hosted
123-
version: "1.8.1"
137+
version: "1.9.1"
124138
stack_trace:
125139
dependency: transitive
126140
description:
127141
name: stack_trace
128-
url: "https://pub.dartlang.org"
142+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
143+
url: "https://pub.dev"
129144
source: hosted
130-
version: "1.10.0"
145+
version: "1.11.0"
131146
stream_channel:
132147
dependency: transitive
133148
description:
134149
name: stream_channel
135-
url: "https://pub.dartlang.org"
150+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
151+
url: "https://pub.dev"
136152
source: hosted
137-
version: "2.1.0"
153+
version: "2.1.1"
138154
string_scanner:
139155
dependency: transitive
140156
description:
141157
name: string_scanner
142-
url: "https://pub.dartlang.org"
158+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
159+
url: "https://pub.dev"
143160
source: hosted
144-
version: "1.1.0"
161+
version: "1.2.0"
145162
term_glyph:
146163
dependency: transitive
147164
description:
148165
name: term_glyph
149-
url: "https://pub.dartlang.org"
166+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
167+
url: "https://pub.dev"
150168
source: hosted
151-
version: "1.2.0"
169+
version: "1.2.1"
152170
test_api:
153171
dependency: transitive
154172
description:
155173
name: test_api
156-
url: "https://pub.dartlang.org"
174+
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
175+
url: "https://pub.dev"
157176
source: hosted
158-
version: "0.4.8"
159-
typed_data:
160-
dependency: transitive
161-
description:
162-
name: typed_data
163-
url: "https://pub.dartlang.org"
164-
source: hosted
165-
version: "1.3.0"
177+
version: "0.5.1"
166178
vector_math:
167179
dependency: transitive
168180
description:
169181
name: vector_math
170-
url: "https://pub.dartlang.org"
182+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
183+
url: "https://pub.dev"
171184
source: hosted
172-
version: "2.1.1"
185+
version: "2.1.4"
173186
sdks:
174-
dart: ">=2.16.0 <3.0.0"
187+
dart: ">=3.0.0 <4.0.0"

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ publish_to: "none"
55
version: 1.0.0
66

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

1010
dependencies:
1111
flutter:
@@ -16,7 +16,7 @@ dependencies:
1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
flutter_lints: ^1.0.4
19+
flutter_lints: ^2.0.1
2020

2121
flutter:
2222
uses-material-design: true

0 commit comments

Comments
 (0)