Skip to content

Commit 2acf10b

Browse files
committed
bfix(freezed): cannot add to an unmodifiable list
Signed-off-by: Aman <[email protected]>
1 parent c38a2a7 commit 2acf10b

File tree

5 files changed

+36
-64
lines changed

5 files changed

+36
-64
lines changed

lib/presentation/contests/bloc/contests_state.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of 'contests_bloc.dart';
22

3-
@freezed
3+
@Freezed(makeCollectionsUnmodifiable: false)
44
class ContestsState extends Equatable with _$ContestsState {
55
const factory ContestsState({
66
@Default(Status.loading()) Status status,

lib/presentation/feed/bloc/feed_state.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of 'feed_bloc.dart';
22

3-
@freezed
3+
@Freezed(makeCollectionsUnmodifiable: false)
44
class FeedState with _$FeedState {
55
const factory FeedState({
66
@Default(Status.loading()) Status status,

lib/presentation/search/bloc/search_state.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of 'search_bloc.dart';
22

3-
@freezed
3+
@Freezed(makeCollectionsUnmodifiable: false)
44
class SearchState with _$SearchState {
55
const factory SearchState({
66
@Default(Status.loading()) Status status,

pubspec.lock

+27-55
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
name: _flutterfire_internals
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.0.2"
17+
version: "1.0.5"
1818
analyzer:
1919
dependency: transitive
2020
description:
@@ -77,7 +77,7 @@ packages:
7777
name: build_config
7878
url: "https://pub.dartlang.org"
7979
source: hosted
80-
version: "1.1.0"
80+
version: "1.1.1"
8181
build_daemon:
8282
dependency: transitive
8383
description:
@@ -105,7 +105,7 @@ packages:
105105
name: build_runner_core
106106
url: "https://pub.dartlang.org"
107107
source: hosted
108-
version: "7.2.4"
108+
version: "7.2.6"
109109
built_collection:
110110
dependency: transitive
111111
description:
@@ -196,14 +196,14 @@ packages:
196196
name: cloud_firestore_platform_interface
197197
url: "https://pub.dartlang.org"
198198
source: hosted
199-
version: "5.7.7"
199+
version: "5.8.2"
200200
cloud_firestore_web:
201201
dependency: transitive
202202
description:
203203
name: cloud_firestore_web
204204
url: "https://pub.dartlang.org"
205205
source: hosted
206-
version: "2.8.10"
206+
version: "3.0.2"
207207
code_builder:
208208
dependency: transitive
209209
description:
@@ -322,7 +322,7 @@ packages:
322322
name: firebase_core
323323
url: "https://pub.dartlang.org"
324324
source: hosted
325-
version: "1.24.0"
325+
version: "2.1.0"
326326
firebase_core_platform_interface:
327327
dependency: transitive
328328
description:
@@ -336,63 +336,63 @@ packages:
336336
name: firebase_core_web
337337
url: "https://pub.dartlang.org"
338338
source: hosted
339-
version: "1.7.3"
339+
version: "2.0.0"
340340
firebase_crashlytics:
341341
dependency: "direct main"
342342
description:
343343
name: firebase_crashlytics
344344
url: "https://pub.dartlang.org"
345345
source: hosted
346-
version: "2.9.0"
346+
version: "3.0.2"
347347
firebase_crashlytics_platform_interface:
348348
dependency: transitive
349349
description:
350350
name: firebase_crashlytics_platform_interface
351351
url: "https://pub.dartlang.org"
352352
source: hosted
353-
version: "3.3.0"
353+
version: "3.3.3"
354354
firebase_messaging:
355355
dependency: "direct main"
356356
description:
357357
name: firebase_messaging
358358
url: "https://pub.dartlang.org"
359359
source: hosted
360-
version: "13.1.0"
360+
version: "14.0.2"
361361
firebase_messaging_platform_interface:
362362
dependency: transitive
363363
description:
364364
name: firebase_messaging_platform_interface
365365
url: "https://pub.dartlang.org"
366366
source: hosted
367-
version: "4.2.0"
367+
version: "4.2.3"
368368
firebase_messaging_web:
369369
dependency: transitive
370370
description:
371371
name: firebase_messaging_web
372372
url: "https://pub.dartlang.org"
373373
source: hosted
374-
version: "3.2.0"
374+
version: "3.2.3"
375375
firebase_remote_config:
376376
dependency: "direct main"
377377
description:
378378
name: firebase_remote_config
379379
url: "https://pub.dartlang.org"
380380
source: hosted
381-
version: "2.0.20"
381+
version: "3.0.2"
382382
firebase_remote_config_platform_interface:
383383
dependency: transitive
384384
description:
385385
name: firebase_remote_config_platform_interface
386386
url: "https://pub.dartlang.org"
387387
source: hosted
388-
version: "1.1.19"
388+
version: "1.1.22"
389389
firebase_remote_config_web:
390390
dependency: transitive
391391
description:
392392
name: firebase_remote_config_web
393393
url: "https://pub.dartlang.org"
394394
source: hosted
395-
version: "1.1.8"
395+
version: "1.1.11"
396396
fixnum:
397397
dependency: transitive
398398
description:
@@ -488,14 +488,14 @@ packages:
488488
name: flutter_local_notifications
489489
url: "https://pub.dartlang.org"
490490
source: hosted
491-
version: "11.0.1"
491+
version: "12.0.2"
492492
flutter_local_notifications_linux:
493493
dependency: transitive
494494
description:
495495
name: flutter_local_notifications_linux
496496
url: "https://pub.dartlang.org"
497497
source: hosted
498-
version: "1.0.0"
498+
version: "2.0.0"
499499
flutter_local_notifications_platform_interface:
500500
dependency: transitive
501501
description:
@@ -610,7 +610,7 @@ packages:
610610
name: graphs
611611
url: "https://pub.dartlang.org"
612612
source: hosted
613-
version: "2.1.0"
613+
version: "2.2.0"
614614
hive:
615615
dependency: transitive
616616
description:
@@ -631,7 +631,7 @@ packages:
631631
name: html
632632
url: "https://pub.dartlang.org"
633633
source: hosted
634-
version: "0.15.0"
634+
version: "0.15.1"
635635
http:
636636
dependency: transitive
637637
description:
@@ -757,14 +757,14 @@ packages:
757757
name: json_serializable
758758
url: "https://pub.dartlang.org"
759759
source: hosted
760-
version: "6.5.1"
760+
version: "6.5.3"
761761
lints:
762762
dependency: transitive
763763
description:
764764
name: lints
765765
url: "https://pub.dartlang.org"
766766
source: hosted
767-
version: "2.0.0"
767+
version: "2.0.1"
768768
logging:
769769
dependency: transitive
770770
description:
@@ -841,42 +841,14 @@ packages:
841841
name: package_info_plus
842842
url: "https://pub.dartlang.org"
843843
source: hosted
844-
version: "2.0.0"
845-
package_info_plus_linux:
846-
dependency: transitive
847-
description:
848-
name: package_info_plus_linux
849-
url: "https://pub.dartlang.org"
850-
source: hosted
851-
version: "2.0.0"
852-
package_info_plus_macos:
853-
dependency: transitive
854-
description:
855-
name: package_info_plus_macos
856-
url: "https://pub.dartlang.org"
857-
source: hosted
858-
version: "2.0.0"
844+
version: "3.0.1"
859845
package_info_plus_platform_interface:
860846
dependency: transitive
861847
description:
862848
name: package_info_plus_platform_interface
863849
url: "https://pub.dartlang.org"
864850
source: hosted
865-
version: "2.0.0"
866-
package_info_plus_web:
867-
dependency: transitive
868-
description:
869-
name: package_info_plus_web
870-
url: "https://pub.dartlang.org"
871-
source: hosted
872-
version: "2.0.0"
873-
package_info_plus_windows:
874-
dependency: transitive
875-
description:
876-
name: package_info_plus_windows
877-
url: "https://pub.dartlang.org"
878-
source: hosted
879-
version: "3.0.0"
851+
version: "2.0.1"
880852
path:
881853
dependency: transitive
882854
description:
@@ -1023,14 +995,14 @@ packages:
1023995
name: sentry
1024996
url: "https://pub.dartlang.org"
1025997
source: hosted
1026-
version: "6.12.2"
998+
version: "6.13.1"
1027999
sentry_flutter:
10281000
dependency: "direct main"
10291001
description:
10301002
name: sentry_flutter
10311003
url: "https://pub.dartlang.org"
10321004
source: hosted
1033-
version: "6.12.2"
1005+
version: "6.13.1"
10341006
shelf:
10351007
dependency: transitive
10361008
description:
@@ -1084,14 +1056,14 @@ packages:
10841056
name: source_map_stack_trace
10851057
url: "https://pub.dartlang.org"
10861058
source: hosted
1087-
version: "2.1.0"
1059+
version: "2.1.1"
10881060
source_maps:
10891061
dependency: transitive
10901062
description:
10911063
name: source_maps
10921064
url: "https://pub.dartlang.org"
10931065
source: hosted
1094-
version: "0.10.10"
1066+
version: "0.10.11"
10951067
source_span:
10961068
dependency: transitive
10971069
description:

pubspec.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Codephile.
33

44
publish_to: 'none'
55

6-
version: 1.0.0+17
6+
version: 1.0.0+19
77

88
environment:
99
sdk: ">=2.12.0 <3.0.0"
@@ -15,14 +15,14 @@ dependencies:
1515
dio: ^4.0.4
1616
dropdown_search: ^5.0.3
1717
equatable: ^2.0.3
18-
firebase_core: ^1.11.0
19-
firebase_crashlytics: ^2.4.5
20-
firebase_messaging: ^13.0.4
21-
firebase_remote_config: ^2.0.19
18+
firebase_core: ^2.1.0
19+
firebase_crashlytics: ^3.0.2
20+
firebase_messaging: ^14.0.2
21+
firebase_remote_config: ^3.0.2
2222
flutter:
2323
sdk: flutter
2424
flutter_bloc: ^8.0.1
25-
flutter_local_notifications: ^11.0.1
25+
flutter_local_notifications: ^12.0.2
2626
flutter_native_splash: ^2.1.6
2727
flutter_native_timezone: ^2.0.0
2828
flutter_screenutil: ^5.5.4

0 commit comments

Comments
 (0)