Skip to content

Commit 7d22aba

Browse files
committed
chore: update to flutter 3.32.0
1 parent e357331 commit 7d22aba

File tree

8 files changed

+81
-78
lines changed

8 files changed

+81
-78
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
FLUTTER_VERSION: 3.24.3
13+
FLUTTER_VERSION: 3.32.0
1414

1515
jobs:
1616
analyze:

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
FLUTTER_VERSION: 3.24.3
9+
FLUTTER_VERSION: 3.32.0
1010

1111
jobs:
1212
publish:

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"yaml.schemaStore.enable": false
3+
}

example/lib/src/colors/colors_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ColorsView extends StatelessWidget {
8989
borderRadius: BorderRadius.circular(6),
9090
boxShadow: [
9191
BoxShadow(
92-
color: Colors.black.withOpacity(0.1),
92+
color: Colors.black.withValues(alpha: 0.1),
9393
offset: const Offset(0, 1),
9494
spreadRadius: 1,
9595
blurRadius: 2,
@@ -192,7 +192,7 @@ Map<String, (Color, Color?)> getPrimaryColors(ThemeData theme) {
192192
return Map.fromEntries(
193193
Colors.accents.map(
194194
(e) => MapEntry(
195-
'#${e.value.toHex().toString()}',
195+
'#${e.toARGB32().toHex().toString()}',
196196
(e, theme.colorScheme.onPrimary),
197197
),
198198
),

example/pubspec.lock

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,50 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
8+
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.11.0"
11+
version: "2.13.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
16-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
16+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "2.1.1"
19+
version: "2.1.2"
2020
characters:
2121
dependency: transitive
2222
description:
2323
name: characters
24-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
24+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "1.3.0"
27+
version: "1.4.0"
2828
clock:
2929
dependency: transitive
3030
description:
3131
name: clock
32-
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
32+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.1.1"
35+
version: "1.1.2"
3636
collection:
3737
dependency: transitive
3838
description:
3939
name: collection
40-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
40+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.18.0"
43+
version: "1.19.1"
4444
fake_async:
4545
dependency: transitive
4646
description:
4747
name: fake_async
48-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
48+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
4949
url: "https://pub.dev"
5050
source: hosted
51-
version: "1.3.1"
51+
version: "1.3.3"
5252
flutter:
5353
dependency: "direct main"
5454
description: flutter
@@ -71,18 +71,18 @@ packages:
7171
dependency: transitive
7272
description:
7373
name: leak_tracker
74-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
74+
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
7575
url: "https://pub.dev"
7676
source: hosted
77-
version: "10.0.5"
77+
version: "10.0.9"
7878
leak_tracker_flutter_testing:
7979
dependency: transitive
8080
description:
8181
name: leak_tracker_flutter_testing
82-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
82+
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
8383
url: "https://pub.dev"
8484
source: hosted
85-
version: "3.0.5"
85+
version: "3.0.9"
8686
leak_tracker_testing:
8787
dependency: transitive
8888
description:
@@ -103,10 +103,10 @@ packages:
103103
dependency: transitive
104104
description:
105105
name: matcher
106-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
106+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
107107
url: "https://pub.dev"
108108
source: hosted
109-
version: "0.12.16+1"
109+
version: "0.12.17"
110110
material_color_utilities:
111111
dependency: transitive
112112
description:
@@ -119,18 +119,18 @@ packages:
119119
dependency: transitive
120120
description:
121121
name: meta
122-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
122+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
123123
url: "https://pub.dev"
124124
source: hosted
125-
version: "1.15.0"
125+
version: "1.16.0"
126126
path:
127127
dependency: transitive
128128
description:
129129
name: path
130-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
130+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
131131
url: "https://pub.dev"
132132
source: hosted
133-
version: "1.9.0"
133+
version: "1.9.1"
134134
phoenix_theme:
135135
dependency: "direct main"
136136
description:
@@ -142,55 +142,55 @@ packages:
142142
dependency: transitive
143143
description: flutter
144144
source: sdk
145-
version: "0.0.99"
145+
version: "0.0.0"
146146
source_span:
147147
dependency: transitive
148148
description:
149149
name: source_span
150-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
150+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
151151
url: "https://pub.dev"
152152
source: hosted
153-
version: "1.10.0"
153+
version: "1.10.1"
154154
stack_trace:
155155
dependency: transitive
156156
description:
157157
name: stack_trace
158-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
158+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
159159
url: "https://pub.dev"
160160
source: hosted
161-
version: "1.11.1"
161+
version: "1.12.1"
162162
stream_channel:
163163
dependency: transitive
164164
description:
165165
name: stream_channel
166-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
166+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
167167
url: "https://pub.dev"
168168
source: hosted
169-
version: "2.1.2"
169+
version: "2.1.4"
170170
string_scanner:
171171
dependency: transitive
172172
description:
173173
name: string_scanner
174-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
174+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
175175
url: "https://pub.dev"
176176
source: hosted
177-
version: "1.2.0"
177+
version: "1.4.1"
178178
term_glyph:
179179
dependency: transitive
180180
description:
181181
name: term_glyph
182-
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
182+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
183183
url: "https://pub.dev"
184184
source: hosted
185-
version: "1.2.1"
185+
version: "1.2.2"
186186
test_api:
187187
dependency: transitive
188188
description:
189189
name: test_api
190-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
190+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
191191
url: "https://pub.dev"
192192
source: hosted
193-
version: "0.7.2"
193+
version: "0.7.4"
194194
vector_math:
195195
dependency: transitive
196196
description:
@@ -203,10 +203,10 @@ packages:
203203
dependency: transitive
204204
description:
205205
name: vm_service
206-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
206+
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
207207
url: "https://pub.dev"
208208
source: hosted
209-
version: "14.2.5"
209+
version: "15.0.0"
210210
sdks:
211-
dart: ">=3.3.0 <4.0.0"
211+
dart: ">=3.7.0-0 <4.0.0"
212212
flutter: ">=3.24.3"

lib/src/color_x.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension ColorX on Color {
2929
}
3030

3131
return hslColor
32-
.withAlpha(scale(opacity, alpha))
32+
.withAlpha(scale(a, alpha))
3333
.withHue(scale(hslColor.hue, hue, 360.0))
3434
.withSaturation(scale(hslColor.saturation, saturation))
3535
.withLightness(scale(hslColor.lightness, lightness))
@@ -143,7 +143,7 @@ extension ColorX on Color {
143143

144144
/// Returns a hex representation (`#AARRGGBB`) of the color.
145145
String toHex() {
146-
return '#${alpha.toHex()}${red.toHex()}${green.toHex()}${blue.toHex()}';
146+
return '#${a.toInt().toHex()}${r.toInt().toHex()}${g.toInt().toHex()}${b.toInt().toHex()}';
147147
}
148148

149149
Color get contrastColor =>

0 commit comments

Comments
 (0)