Skip to content

Commit 3dbbfbb

Browse files
committed
chore: update source code
1 parent bf81a77 commit 3dbbfbb

File tree

36 files changed

+1666
-894
lines changed

36 files changed

+1666
-894
lines changed

animation_tutorial/lib/animation_positioned.dart

+11-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class _AnimationPostionedState extends State<AnimationPostioned> {
1515
@override
1616
Widget build(BuildContext context) {
1717
return Stack(
18-
alignment: Alignment.topCenter,
18+
alignment: Alignment.topCenter,
1919
children: <Widget>[
2020
AnimatedPositioned(
2121
width: 200,
@@ -27,15 +27,17 @@ class _AnimationPostionedState extends State<AnimationPostioned> {
2727
color: Colors.teal,
2828
)),
2929
Positioned(
30-
top: 20,
30+
top: 20,
3131
child: ElevatedButton(
32-
style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.teal)),
33-
onPressed: () {
34-
setState(() {
35-
selected = !selected;
36-
});
37-
},
38-
child: const Text("click me"),))
32+
style: ButtonStyle(
33+
backgroundColor: WidgetStateProperty.all(Colors.teal)),
34+
onPressed: () {
35+
setState(() {
36+
selected = !selected;
37+
});
38+
},
39+
child: const Text("click me"),
40+
))
3941
],
4042
);
4143
}

animation_tutorial/pubspec.lock

+93-54
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,58 @@ 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: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.15.0"
43+
version: "1.18.0"
4644
cupertino_icons:
4745
dependency: "direct main"
4846
description:
4947
name: cupertino_icons
50-
url: "https://pub.dartlang.org"
48+
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
49+
url: "https://pub.dev"
5150
source: hosted
52-
version: "1.0.4"
51+
version: "1.0.8"
5352
fake_async:
5453
dependency: transitive
5554
description:
5655
name: fake_async
57-
url: "https://pub.dartlang.org"
56+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57+
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.2.0"
59+
version: "1.3.1"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
@@ -66,49 +66,79 @@ packages:
6666
dependency: "direct dev"
6767
description:
6868
name: flutter_lints
69-
url: "https://pub.dartlang.org"
69+
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
70+
url: "https://pub.dev"
7071
source: hosted
71-
version: "1.0.4"
72+
version: "4.0.0"
7273
flutter_test:
7374
dependency: "direct dev"
7475
description: flutter
7576
source: sdk
7677
version: "0.0.0"
78+
leak_tracker:
79+
dependency: transitive
80+
description:
81+
name: leak_tracker
82+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
83+
url: "https://pub.dev"
84+
source: hosted
85+
version: "10.0.5"
86+
leak_tracker_flutter_testing:
87+
dependency: transitive
88+
description:
89+
name: leak_tracker_flutter_testing
90+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
91+
url: "https://pub.dev"
92+
source: hosted
93+
version: "3.0.5"
94+
leak_tracker_testing:
95+
dependency: transitive
96+
description:
97+
name: leak_tracker_testing
98+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
99+
url: "https://pub.dev"
100+
source: hosted
101+
version: "3.0.1"
77102
lints:
78103
dependency: transitive
79104
description:
80105
name: lints
81-
url: "https://pub.dartlang.org"
106+
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
107+
url: "https://pub.dev"
82108
source: hosted
83-
version: "1.0.1"
109+
version: "4.0.0"
84110
matcher:
85111
dependency: transitive
86112
description:
87113
name: matcher
88-
url: "https://pub.dartlang.org"
114+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
115+
url: "https://pub.dev"
89116
source: hosted
90-
version: "0.12.11"
117+
version: "0.12.16+1"
91118
material_color_utilities:
92119
dependency: transitive
93120
description:
94121
name: material_color_utilities
95-
url: "https://pub.dartlang.org"
122+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
123+
url: "https://pub.dev"
96124
source: hosted
97-
version: "0.1.3"
125+
version: "0.11.1"
98126
meta:
99127
dependency: transitive
100128
description:
101129
name: meta
102-
url: "https://pub.dartlang.org"
130+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
131+
url: "https://pub.dev"
103132
source: hosted
104-
version: "1.7.0"
133+
version: "1.15.0"
105134
path:
106135
dependency: transitive
107136
description:
108137
name: path
109-
url: "https://pub.dartlang.org"
138+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
139+
url: "https://pub.dev"
110140
source: hosted
111-
version: "1.8.0"
141+
version: "1.9.0"
112142
sky_engine:
113143
dependency: transitive
114144
description: flutter
@@ -118,57 +148,66 @@ packages:
118148
dependency: transitive
119149
description:
120150
name: source_span
121-
url: "https://pub.dartlang.org"
151+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
152+
url: "https://pub.dev"
122153
source: hosted
123-
version: "1.8.1"
154+
version: "1.10.0"
124155
stack_trace:
125156
dependency: transitive
126157
description:
127158
name: stack_trace
128-
url: "https://pub.dartlang.org"
159+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
160+
url: "https://pub.dev"
129161
source: hosted
130-
version: "1.10.0"
162+
version: "1.11.1"
131163
stream_channel:
132164
dependency: transitive
133165
description:
134166
name: stream_channel
135-
url: "https://pub.dartlang.org"
167+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
168+
url: "https://pub.dev"
136169
source: hosted
137-
version: "2.1.0"
170+
version: "2.1.2"
138171
string_scanner:
139172
dependency: transitive
140173
description:
141174
name: string_scanner
142-
url: "https://pub.dartlang.org"
175+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
176+
url: "https://pub.dev"
143177
source: hosted
144-
version: "1.1.0"
178+
version: "1.2.0"
145179
term_glyph:
146180
dependency: transitive
147181
description:
148182
name: term_glyph
149-
url: "https://pub.dartlang.org"
183+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
184+
url: "https://pub.dev"
150185
source: hosted
151-
version: "1.2.0"
186+
version: "1.2.1"
152187
test_api:
153188
dependency: transitive
154189
description:
155190
name: test_api
156-
url: "https://pub.dartlang.org"
191+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
192+
url: "https://pub.dev"
157193
source: hosted
158-
version: "0.4.8"
159-
typed_data:
194+
version: "0.7.2"
195+
vector_math:
160196
dependency: transitive
161197
description:
162-
name: typed_data
163-
url: "https://pub.dartlang.org"
198+
name: vector_math
199+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
200+
url: "https://pub.dev"
164201
source: hosted
165-
version: "1.3.0"
166-
vector_math:
202+
version: "2.1.4"
203+
vm_service:
167204
dependency: transitive
168205
description:
169-
name: vector_math
170-
url: "https://pub.dartlang.org"
206+
name: vm_service
207+
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
208+
url: "https://pub.dev"
171209
source: hosted
172-
version: "2.1.1"
210+
version: "14.2.4"
173211
sdks:
174-
dart: ">=2.16.0 <3.0.0"
212+
dart: ">=3.5.0 <4.0.0"
213+
flutter: ">=3.18.0-18.0.pre.54"

animation_tutorial/pubspec.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A new Flutter project.
33

44
# The following line prevents the package from being accidentally published to
55
# pub.dev using `flutter pub publish`. This is preferred for private packages.
6-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6+
publish_to: "none" # Remove this line if you wish to publish to pub.dev
77

88
# The following defines the version and build number for your application.
99
# A version number is three numbers separated by dots, like 1.2.43
@@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1818
version: 1.0.0+1
1919

2020
environment:
21-
sdk: ">=2.16.0 <3.0.0"
21+
sdk: "^3.5.0"
2222

2323
# Dependencies specify other packages that your package needs in order to work.
2424
# To automatically upgrade your package dependencies to the latest versions
@@ -30,10 +30,9 @@ dependencies:
3030
flutter:
3131
sdk: flutter
3232

33-
3433
# The following adds the Cupertino Icons font to your application.
3534
# Use with the CupertinoIcons class for iOS style icons.
36-
cupertino_icons: ^1.0.2
35+
cupertino_icons: ^1.0.8
3736

3837
dev_dependencies:
3938
flutter_test:
@@ -44,14 +43,13 @@ dev_dependencies:
4443
# activated in the `analysis_options.yaml` file located at the root of your
4544
# package. See that file for information about deactivating specific lint
4645
# rules and activating additional ones.
47-
flutter_lints: ^1.0.0
46+
flutter_lints: ^4.0.0
4847

4948
# For information on the generic Dart part of this file, see the
5049
# following page: https://dart.dev/tools/pub/pubspec
5150

5251
# The following section is specific to Flutter.
5352
flutter:
54-
5553
# The following line ensures that the Material Icons font is
5654
# included with your application, so that you can use the icons in
5755
# the material Icons class.

animation_tutorial/test/widget_test.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
// gestures. You can also use WidgetTester to find child widgets in the widget
66
// tree, read text, and verify that the values of widget properties are correct.
77

8+
import 'package:animation_tutorial/main.dart';
89
import 'package:flutter/material.dart';
910
import 'package:flutter_test/flutter_test.dart';
1011

11-
import 'package:animation_tutorial/main.dart';
12-
1312
void main() {
1413
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
1514
// Build our app and trigger a frame.
16-
await tester.pumpWidget(const MyApp());
15+
await tester.pumpWidget(const AnimationTutorial());
1716

1817
// Verify that our counter starts at 0.
1918
expect(find.text('0'), findsOneWidget);

animation_tutorial/windows/flutter/generated_plugins.cmake

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
list(APPEND FLUTTER_PLUGIN_LIST
66
)
77

8+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
9+
)
10+
811
set(PLUGIN_BUNDLED_LIBRARIES)
912

1013
foreach(plugin ${FLUTTER_PLUGIN_LIST})
@@ -13,3 +16,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
1316
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
1417
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
1518
endforeach(plugin)
19+
20+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
22+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23+
endforeach(ffi_plugin)

bloc_tutorial/lib/main.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import 'app.dart';
55
import 'todo_bloc_observer.dart';
66

77
void main() async {
8-
BlocOverrides.runZoned(
9-
() => runApp(const App()),
10-
blocObserver: TodoBlocObserver(),
11-
);
12-
}
8+
Bloc.observer = TodoBlocObserver();
9+
runApp(const App());
10+
}

0 commit comments

Comments
 (0)