Skip to content

Commit 38dec5c

Browse files
Copilot0xrinegade
andcommitted
Fix Flutter analyzer warnings: Add const constructors for performance improvements
Co-authored-by: 0xrinegade <[email protected]>
1 parent 1318c2c commit 38dec5c

File tree

5 files changed

+55
-55
lines changed

5 files changed

+55
-55
lines changed

flutter_sdk/example/pubspec.lock

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@ 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
crypto:
4545
dependency: transitive
4646
description:
@@ -61,18 +61,18 @@ packages:
6161
dependency: transitive
6262
description:
6363
name: fake_async
64-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
64+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
6565
url: "https://pub.dev"
6666
source: hosted
67-
version: "1.3.1"
67+
version: "1.3.3"
6868
file:
6969
dependency: transitive
7070
description:
7171
name: file
72-
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
72+
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
7373
url: "https://pub.dev"
7474
source: hosted
75-
version: "7.0.0"
75+
version: "7.0.1"
7676
flutter:
7777
dependency: "direct main"
7878
description: flutter
@@ -126,18 +126,18 @@ packages:
126126
dependency: transitive
127127
description:
128128
name: leak_tracker
129-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
129+
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
130130
url: "https://pub.dev"
131131
source: hosted
132-
version: "10.0.5"
132+
version: "10.0.9"
133133
leak_tracker_flutter_testing:
134134
dependency: transitive
135135
description:
136136
name: leak_tracker_flutter_testing
137-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
137+
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
138138
url: "https://pub.dev"
139139
source: hosted
140-
version: "3.0.5"
140+
version: "3.0.9"
141141
leak_tracker_testing:
142142
dependency: transitive
143143
description:
@@ -158,10 +158,10 @@ packages:
158158
dependency: transitive
159159
description:
160160
name: matcher
161-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
161+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
162162
url: "https://pub.dev"
163163
source: hosted
164-
version: "0.12.16+1"
164+
version: "0.12.17"
165165
material_color_utilities:
166166
dependency: transitive
167167
description:
@@ -174,26 +174,26 @@ packages:
174174
dependency: transitive
175175
description:
176176
name: meta
177-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
177+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
178178
url: "https://pub.dev"
179179
source: hosted
180-
version: "1.15.0"
180+
version: "1.16.0"
181181
path:
182182
dependency: transitive
183183
description:
184184
name: path
185-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
185+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
186186
url: "https://pub.dev"
187187
source: hosted
188-
version: "1.9.0"
188+
version: "1.9.1"
189189
platform:
190190
dependency: transitive
191191
description:
192192
name: platform
193-
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
193+
sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
194194
url: "https://pub.dev"
195195
source: hosted
196-
version: "3.1.5"
196+
version: "3.1.6"
197197
plugin_platform_interface:
198198
dependency: transitive
199199
description:
@@ -206,47 +206,47 @@ packages:
206206
dependency: transitive
207207
description:
208208
name: process
209-
sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
209+
sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d"
210210
url: "https://pub.dev"
211211
source: hosted
212-
version: "5.0.2"
212+
version: "5.0.3"
213213
sky_engine:
214214
dependency: transitive
215215
description: flutter
216216
source: sdk
217-
version: "0.0.99"
217+
version: "0.0.0"
218218
source_span:
219219
dependency: transitive
220220
description:
221221
name: source_span
222-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
222+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
223223
url: "https://pub.dev"
224224
source: hosted
225-
version: "1.10.0"
225+
version: "1.10.1"
226226
stack_trace:
227227
dependency: transitive
228228
description:
229229
name: stack_trace
230-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
230+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
231231
url: "https://pub.dev"
232232
source: hosted
233-
version: "1.11.1"
233+
version: "1.12.1"
234234
stream_channel:
235235
dependency: transitive
236236
description:
237237
name: stream_channel
238-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
238+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
239239
url: "https://pub.dev"
240240
source: hosted
241-
version: "2.1.2"
241+
version: "2.1.4"
242242
string_scanner:
243243
dependency: transitive
244244
description:
245245
name: string_scanner
246-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
246+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
247247
url: "https://pub.dev"
248248
source: hosted
249-
version: "1.2.0"
249+
version: "1.4.1"
250250
svm_pay:
251251
dependency: "direct main"
252252
description:
@@ -266,18 +266,18 @@ packages:
266266
dependency: transitive
267267
description:
268268
name: term_glyph
269-
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
269+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
270270
url: "https://pub.dev"
271271
source: hosted
272-
version: "1.2.1"
272+
version: "1.2.2"
273273
test_api:
274274
dependency: transitive
275275
description:
276276
name: test_api
277-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
277+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
278278
url: "https://pub.dev"
279279
source: hosted
280-
version: "0.7.2"
280+
version: "0.7.4"
281281
typed_data:
282282
dependency: transitive
283283
description:
@@ -298,10 +298,10 @@ packages:
298298
dependency: transitive
299299
description:
300300
name: vm_service
301-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
301+
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
302302
url: "https://pub.dev"
303303
source: hosted
304-
version: "14.2.5"
304+
version: "15.0.0"
305305
web:
306306
dependency: transitive
307307
description:
@@ -314,10 +314,10 @@ packages:
314314
dependency: transitive
315315
description:
316316
name: webdriver
317-
sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"
317+
sha256: "2f3a14ca026957870cfd9c635b83507e0e51d8091568e90129fbf805aba7cade"
318318
url: "https://pub.dev"
319319
source: hosted
320-
version: "3.0.3"
320+
version: "3.1.0"
321321
sdks:
322-
dart: ">=3.4.0 <4.0.0"
322+
dart: ">=3.7.0-0 <4.0.0"
323323
flutter: ">=3.18.0-18.0.pre.54"

flutter_sdk/test/bug_fixes_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void main() {
186186
test('payment processing logs fee warning', () {
187187
// This test would require a way to capture log output
188188
// For now, we just verify the method doesn't crash
189-
final request = TransferRequest(
189+
const request = TransferRequest(
190190
recipient: '11111111111111111111111111111112',
191191
amount: '1.0',
192192
network: SVMNetwork.solana,

flutter_sdk/test/integration_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void main() {
127127

128128
group('Network Integration Tests', () {
129129
testWidgets('should handle payment processing', (tester) async {
130-
final request = TransferRequest(
130+
const request = TransferRequest(
131131
recipient: testAddress,
132132
amount: '0.001',
133133
network: SVMNetwork.solana,
@@ -168,7 +168,7 @@ void main() {
168168
testWidgets('should handle network timeouts gracefully', (tester) async {
169169
// This test might be challenging in a real environment
170170
// We're testing that timeouts are handled properly
171-
final request = TransferRequest(
171+
const request = TransferRequest(
172172
recipient: testAddress,
173173
amount: '1000000.0', // Large amount to potentially trigger timeout
174174
network: SVMNetwork.solana,
@@ -296,7 +296,7 @@ void main() {
296296
group('Error Handling Tests', () {
297297
testWidgets('should handle platform exceptions gracefully', (tester) async {
298298
// Create a request that might trigger platform errors
299-
final request = TransferRequest(
299+
const request = TransferRequest(
300300
recipient: testAddress,
301301
amount: '999999999.0', // Very large amount
302302
network: SVMNetwork.solana,

flutter_sdk/test/security_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void main() {
428428
test('should handle timeout scenarios gracefully', () async {
429429
const validAddress = '11111111111111111111111111111112';
430430

431-
final request = TransferRequest(
431+
const request = TransferRequest(
432432
recipient: validAddress,
433433
amount: '1.0',
434434
network: SVMNetwork.solana,

flutter_sdk/test/widget_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void main() {
5353
);
5454

5555
await tester.pumpWidget(
56-
MaterialApp(
56+
const MaterialApp(
5757
home: Scaffold(
5858
body: PaymentButton(
5959
recipient: testAddress,
@@ -72,7 +72,7 @@ void main() {
7272
const customLoadingWidget = Text('Processing...');
7373

7474
await tester.pumpWidget(
75-
MaterialApp(
75+
const MaterialApp(
7676
home: Scaffold(
7777
body: PaymentButton(
7878
recipient: testAddress,
@@ -329,7 +329,7 @@ void main() {
329329

330330
testWidgets('PaymentButton should show error snackbar on failure', (tester) async {
331331
await tester.pumpWidget(
332-
MaterialApp(
332+
const MaterialApp(
333333
home: Scaffold(
334334
body: PaymentButton(
335335
recipient: '', // Empty address will cause validation failure
@@ -351,7 +351,7 @@ void main() {
351351

352352
testWidgets('Widgets should handle loading states correctly', (tester) async {
353353
await tester.pumpWidget(
354-
MaterialApp(
354+
const MaterialApp(
355355
home: Scaffold(
356356
body: PaymentButton(
357357
recipient: testAddress,

0 commit comments

Comments
 (0)