Skip to content

Commit 602019f

Browse files
committed
Flutter 3
3.0.0
1 parent 95d8668 commit 602019f

File tree

4 files changed

+101
-74
lines changed

4 files changed

+101
-74
lines changed

example/pubspec.lock

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ packages:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.15.0"
45+
version: "1.16.0"
4646
cupertino_icons:
4747
dependency: "direct main"
4848
description:
@@ -56,7 +56,7 @@ packages:
5656
name: fake_async
5757
url: "https://pub.dartlang.org"
5858
source: hosted
59-
version: "1.2.0"
59+
version: "1.3.0"
6060
ffi:
6161
dependency: transitive
6262
description:
@@ -92,14 +92,21 @@ packages:
9292
name: js
9393
url: "https://pub.dartlang.org"
9494
source: hosted
95-
version: "0.6.3"
95+
version: "0.6.4"
9696
matcher:
9797
dependency: transitive
9898
description:
9999
name: matcher
100100
url: "https://pub.dartlang.org"
101101
source: hosted
102102
version: "0.12.11"
103+
material_color_utilities:
104+
dependency: transitive
105+
description:
106+
name: material_color_utilities
107+
url: "https://pub.dartlang.org"
108+
source: hosted
109+
version: "0.1.4"
103110
meta:
104111
dependency: transitive
105112
description:
@@ -113,7 +120,7 @@ packages:
113120
name: path
114121
url: "https://pub.dartlang.org"
115122
source: hosted
116-
version: "1.8.0"
123+
version: "1.8.1"
117124
path_provider_linux:
118125
dependency: transitive
119126
description:
@@ -162,14 +169,28 @@ packages:
162169
name: shared_preferences
163170
url: "https://pub.dartlang.org"
164171
source: hosted
165-
version: "2.0.5"
172+
version: "2.0.15"
173+
shared_preferences_android:
174+
dependency: transitive
175+
description:
176+
name: shared_preferences_android
177+
url: "https://pub.dartlang.org"
178+
source: hosted
179+
version: "2.0.12"
180+
shared_preferences_ios:
181+
dependency: transitive
182+
description:
183+
name: shared_preferences_ios
184+
url: "https://pub.dartlang.org"
185+
source: hosted
186+
version: "2.1.1"
166187
shared_preferences_linux:
167188
dependency: transitive
168189
description:
169190
name: shared_preferences_linux
170191
url: "https://pub.dartlang.org"
171192
source: hosted
172-
version: "2.0.0"
193+
version: "2.1.1"
173194
shared_preferences_macos:
174195
dependency: transitive
175196
description:
@@ -197,14 +218,14 @@ packages:
197218
name: shared_preferences_windows
198219
url: "https://pub.dartlang.org"
199220
source: hosted
200-
version: "2.0.0"
221+
version: "2.1.1"
201222
shared_value:
202223
dependency: "direct main"
203224
description:
204225
path: ".."
205226
relative: true
206227
source: path
207-
version: "2.1.2"
228+
version: "2.1.3"
208229
sky_engine:
209230
dependency: transitive
210231
description: flutter
@@ -216,7 +237,7 @@ packages:
216237
name: source_span
217238
url: "https://pub.dartlang.org"
218239
source: hosted
219-
version: "1.8.1"
240+
version: "1.8.2"
220241
stack_trace:
221242
dependency: transitive
222243
description:
@@ -251,21 +272,14 @@ packages:
251272
name: test_api
252273
url: "https://pub.dartlang.org"
253274
source: hosted
254-
version: "0.4.3"
255-
typed_data:
256-
dependency: transitive
257-
description:
258-
name: typed_data
259-
url: "https://pub.dartlang.org"
260-
source: hosted
261-
version: "1.3.0"
275+
version: "0.4.9"
262276
vector_math:
263277
dependency: transitive
264278
description:
265279
name: vector_math
266280
url: "https://pub.dartlang.org"
267281
source: hosted
268-
version: "2.1.1"
282+
version: "2.1.2"
269283
win32:
270284
dependency: transitive
271285
description:
@@ -281,5 +295,5 @@ packages:
281295
source: hosted
282296
version: "0.2.0"
283297
sdks:
284-
dart: ">=2.14.0 <3.0.0"
285-
flutter: ">=1.20.0"
298+
dart: ">=2.17.0-0 <3.0.0"
299+
flutter: ">=2.8.0"

lib/manager_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class StateManagerWidgetState extends State<StateManagerWidget> {
2525
if (!mounted) return;
2626

2727
// if there's a current frame,
28-
if (SchedulerBinding.instance?.schedulerPhase != SchedulerPhase.idle) {
28+
if (SchedulerBinding.instance.schedulerPhase != SchedulerPhase.idle) {
2929
// wait for the end of that frame.
30-
await SchedulerBinding.instance?.endOfFrame;
30+
await SchedulerBinding.instance.endOfFrame;
3131
if (!mounted) return;
3232
}
3333

pubspec.lock

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ packages:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.15.0"
45+
version: "1.16.0"
4646
fake_async:
4747
dependency: transitive
4848
description:
4949
name: fake_async
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.2.0"
52+
version: "1.3.0"
5353
ffi:
5454
dependency: transitive
5555
description:
@@ -85,14 +85,21 @@ packages:
8585
name: js
8686
url: "https://pub.dartlang.org"
8787
source: hosted
88-
version: "0.6.3"
88+
version: "0.6.4"
8989
matcher:
9090
dependency: transitive
9191
description:
9292
name: matcher
9393
url: "https://pub.dartlang.org"
9494
source: hosted
9595
version: "0.12.11"
96+
material_color_utilities:
97+
dependency: transitive
98+
description:
99+
name: material_color_utilities
100+
url: "https://pub.dartlang.org"
101+
source: hosted
102+
version: "0.1.4"
96103
meta:
97104
dependency: transitive
98105
description:
@@ -106,7 +113,7 @@ packages:
106113
name: path
107114
url: "https://pub.dartlang.org"
108115
source: hosted
109-
version: "1.8.0"
116+
version: "1.8.1"
110117
path_provider_linux:
111118
dependency: transitive
112119
description:
@@ -155,14 +162,28 @@ packages:
155162
name: shared_preferences
156163
url: "https://pub.dartlang.org"
157164
source: hosted
158-
version: "2.0.5"
165+
version: "2.0.15"
166+
shared_preferences_android:
167+
dependency: transitive
168+
description:
169+
name: shared_preferences_android
170+
url: "https://pub.dartlang.org"
171+
source: hosted
172+
version: "2.0.12"
173+
shared_preferences_ios:
174+
dependency: transitive
175+
description:
176+
name: shared_preferences_ios
177+
url: "https://pub.dartlang.org"
178+
source: hosted
179+
version: "2.1.1"
159180
shared_preferences_linux:
160181
dependency: transitive
161182
description:
162183
name: shared_preferences_linux
163184
url: "https://pub.dartlang.org"
164185
source: hosted
165-
version: "2.0.0"
186+
version: "2.1.1"
166187
shared_preferences_macos:
167188
dependency: transitive
168189
description:
@@ -190,7 +211,7 @@ packages:
190211
name: shared_preferences_windows
191212
url: "https://pub.dartlang.org"
192213
source: hosted
193-
version: "2.0.0"
214+
version: "2.1.1"
194215
sky_engine:
195216
dependency: transitive
196217
description: flutter
@@ -202,7 +223,7 @@ packages:
202223
name: source_span
203224
url: "https://pub.dartlang.org"
204225
source: hosted
205-
version: "1.8.1"
226+
version: "1.8.2"
206227
stack_trace:
207228
dependency: transitive
208229
description:
@@ -237,21 +258,14 @@ packages:
237258
name: test_api
238259
url: "https://pub.dartlang.org"
239260
source: hosted
240-
version: "0.4.3"
241-
typed_data:
242-
dependency: transitive
243-
description:
244-
name: typed_data
245-
url: "https://pub.dartlang.org"
246-
source: hosted
247-
version: "1.3.0"
261+
version: "0.4.9"
248262
vector_math:
249263
dependency: transitive
250264
description:
251265
name: vector_math
252266
url: "https://pub.dartlang.org"
253267
source: hosted
254-
version: "2.1.1"
268+
version: "2.1.2"
255269
win32:
256270
dependency: transitive
257271
description:
@@ -267,5 +281,5 @@ packages:
267281
source: hosted
268282
version: "0.2.0"
269283
sdks:
270-
dart: ">=2.14.0 <3.0.0"
271-
flutter: ">=1.20.0"
284+
dart: ">=2.17.0-0 <3.0.0"
285+
flutter: ">=2.8.0"

pubspec.yaml

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: shared_value
22
description: A straightforward way to manage global state in flutter apps.
3-
version: 2.1.3
4-
author: Dev Aggarwal <[email protected]>
3+
version: 3.0.0
54
homepage: https://github.com/scientifichackers/flutter-shared-value
65

76
environment:
@@ -11,7 +10,7 @@ dependencies:
1110
flutter:
1211
sdk: flutter
1312

14-
shared_preferences: ^2.0.5
13+
shared_preferences: ^2.0.15
1514

1615
dev_dependencies:
1716
flutter_test:
@@ -23,33 +22,33 @@ dev_dependencies:
2322
# The following section is specific to Flutter.
2423
flutter:
2524

26-
# To add assets to your package, add an assets section, like this:
27-
# assets:
28-
# - images/a_dot_burr.jpeg
29-
# - images/a_dot_ham.jpeg
30-
#
31-
# For details regarding assets in packages, see
32-
# https://flutter.dev/assets-and-images/#from-packages
33-
#
34-
# An image asset can refer to one or more resolution-specific "variants", see
35-
# https://flutter.dev/assets-and-images/#resolution-aware.
36-
37-
# To add custom fonts to your package, add a fonts section here,
38-
# in this "flutter" section. Each entry in this list should have a
39-
# "family" key with the font family name, and a "fonts" key with a
40-
# list giving the asset and other descriptors for the font. For
41-
# example:
42-
# fonts:
43-
# - family: Schyler
44-
# fonts:
45-
# - asset: fonts/Schyler-Regular.ttf
46-
# - asset: fonts/Schyler-Italic.ttf
47-
# style: italic
48-
# - family: Trajan Pro
49-
# fonts:
50-
# - asset: fonts/TrajanPro.ttf
51-
# - asset: fonts/TrajanPro_Bold.ttf
52-
# weight: 700
53-
#
54-
# For details regarding fonts in packages, see
55-
# https://flutter.dev/custom-fonts/#from-packages
25+
# To add assets to your package, add an assets section, like this:
26+
# assets:
27+
# - images/a_dot_burr.jpeg
28+
# - images/a_dot_ham.jpeg
29+
#
30+
# For details regarding assets in packages, see
31+
# https://flutter.dev/assets-and-images/#from-packages
32+
#
33+
# An image asset can refer to one or more resolution-specific "variants", see
34+
# https://flutter.dev/assets-and-images/#resolution-aware.
35+
36+
# To add custom fonts to your package, add a fonts section here,
37+
# in this "flutter" section. Each entry in this list should have a
38+
# "family" key with the font family name, and a "fonts" key with a
39+
# list giving the asset and other descriptors for the font. For
40+
# example:
41+
# fonts:
42+
# - family: Schyler
43+
# fonts:
44+
# - asset: fonts/Schyler-Regular.ttf
45+
# - asset: fonts/Schyler-Italic.ttf
46+
# style: italic
47+
# - family: Trajan Pro
48+
# fonts:
49+
# - asset: fonts/TrajanPro.ttf
50+
# - asset: fonts/TrajanPro_Bold.ttf
51+
# weight: 700
52+
#
53+
# For details regarding fonts in packages, see
54+
# https://flutter.dev/custom-fonts/#from-packages

0 commit comments

Comments
 (0)