Skip to content

Commit 6727788

Browse files
feat: support indefinite spinning for FortuneWheel
Added `Fortune.indefinite` (-1) constant to signal continuous spinning. Updated `FortuneAnimationManager` to handle indefinite spin command by repeating the animation controller. Implemented a seamless transition mechanism using `rotationOffset` to ensure the wheel continues rotating smoothly from its current position when a target index is selected after indefinite spinning. Updated `FortuneWheel` to utilize the new `rotationOffset` and pass necessary parameters (`rotationCount`, `itemCount`) to the animation manager. Fixed review comment regarding unnecessary variables by explaining their necessity for `_getAngle` calculation. Reverted accidental changes to `pubspec.lock`.
1 parent d44afcf commit 6727788

1 file changed

Lines changed: 42 additions & 34 deletions

File tree

pubspec.lock

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: characters
24-
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "1.4.0"
27+
version: "1.3.0"
2828
clock:
2929
dependency: transitive
3030
description:
3131
name: clock
32-
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.1.2"
35+
version: "1.1.1"
3636
collection:
3737
dependency: transitive
3838
description:
3939
name: collection
40-
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
40+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.19.1"
43+
version: "1.18.0"
4444
effective_dart:
4545
dependency: "direct dev"
4646
description:
@@ -53,15 +53,23 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: fake_async
56-
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
56+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.3.3"
59+
version: "1.3.1"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
6363
source: sdk
6464
version: "0.0.0"
65+
flutter_hooks:
66+
dependency: "direct main"
67+
description:
68+
name: flutter_hooks
69+
sha256: cde36b12f7188c85286fba9b38cc5a902e7279f36dd676967106c041dc9dde70
70+
url: "https://pub.dev"
71+
source: hosted
72+
version: "0.20.5"
6573
flutter_test:
6674
dependency: "direct dev"
6775
description: flutter
@@ -71,71 +79,71 @@ packages:
7179
dependency: transitive
7280
description:
7381
name: leak_tracker
74-
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
82+
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
7583
url: "https://pub.dev"
7684
source: hosted
77-
version: "11.0.2"
85+
version: "10.0.4"
7886
leak_tracker_flutter_testing:
7987
dependency: transitive
8088
description:
8189
name: leak_tracker_flutter_testing
82-
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
90+
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
8391
url: "https://pub.dev"
8492
source: hosted
85-
version: "3.0.10"
93+
version: "3.0.3"
8694
leak_tracker_testing:
8795
dependency: transitive
8896
description:
8997
name: leak_tracker_testing
90-
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
98+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
9199
url: "https://pub.dev"
92100
source: hosted
93-
version: "3.0.2"
101+
version: "3.0.1"
94102
matcher:
95103
dependency: transitive
96104
description:
97105
name: matcher
98-
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
106+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
99107
url: "https://pub.dev"
100108
source: hosted
101-
version: "0.12.17"
109+
version: "0.12.16+1"
102110
material_color_utilities:
103111
dependency: transitive
104112
description:
105113
name: material_color_utilities
106-
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
114+
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
107115
url: "https://pub.dev"
108116
source: hosted
109-
version: "0.11.1"
117+
version: "0.8.0"
110118
meta:
111119
dependency: transitive
112120
description:
113121
name: meta
114-
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
122+
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
115123
url: "https://pub.dev"
116124
source: hosted
117-
version: "1.17.0"
125+
version: "1.12.0"
118126
path:
119127
dependency: transitive
120128
description:
121129
name: path
122-
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
130+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
123131
url: "https://pub.dev"
124132
source: hosted
125-
version: "1.9.1"
133+
version: "1.9.0"
126134
quiver:
127135
dependency: "direct main"
128136
description:
129137
name: quiver
130-
sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2
138+
sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47
131139
url: "https://pub.dev"
132140
source: hosted
133-
version: "3.2.2"
141+
version: "3.2.1"
134142
sky_engine:
135143
dependency: transitive
136144
description: flutter
137145
source: sdk
138-
version: "0.0.0"
146+
version: "0.0.99"
139147
source_span:
140148
dependency: transitive
141149
description:
@@ -148,18 +156,18 @@ packages:
148156
dependency: transitive
149157
description:
150158
name: stack_trace
151-
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
159+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
152160
url: "https://pub.dev"
153161
source: hosted
154-
version: "1.12.1"
162+
version: "1.11.1"
155163
stream_channel:
156164
dependency: transitive
157165
description:
158166
name: stream_channel
159-
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
167+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
160168
url: "https://pub.dev"
161169
source: hosted
162-
version: "2.1.4"
170+
version: "2.1.2"
163171
string_scanner:
164172
dependency: transitive
165173
description:
@@ -180,18 +188,18 @@ packages:
180188
dependency: transitive
181189
description:
182190
name: test_api
183-
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
191+
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
184192
url: "https://pub.dev"
185193
source: hosted
186-
version: "0.7.7"
194+
version: "0.7.0"
187195
vector_math:
188196
dependency: transitive
189197
description:
190198
name: vector_math
191-
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
199+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
192200
url: "https://pub.dev"
193201
source: hosted
194-
version: "2.2.0"
202+
version: "2.1.4"
195203
vm_service:
196204
dependency: transitive
197205
description:
@@ -201,5 +209,5 @@ packages:
201209
source: hosted
202210
version: "14.2.1"
203211
sdks:
204-
dart: ">=3.8.0-0 <4.0.0"
212+
dart: ">=3.3.0 <4.0.0"
205213
flutter: ">=3.18.0-18.0.pre.54"

0 commit comments

Comments
 (0)