Skip to content

Commit

Permalink
bfix(freezed): cannot add to an unmodifiable list
Browse files Browse the repository at this point in the history
Signed-off-by: Aman <[email protected]>
  • Loading branch information
aman-singh7 committed Oct 23, 2022
1 parent c38a2a7 commit 2acf10b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 64 deletions.
2 changes: 1 addition & 1 deletion lib/presentation/contests/bloc/contests_state.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
part of 'contests_bloc.dart';

@freezed
@Freezed(makeCollectionsUnmodifiable: false)
class ContestsState extends Equatable with _$ContestsState {
const factory ContestsState({
@Default(Status.loading()) Status status,
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/feed/bloc/feed_state.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
part of 'feed_bloc.dart';

@freezed
@Freezed(makeCollectionsUnmodifiable: false)
class FeedState with _$FeedState {
const factory FeedState({
@Default(Status.loading()) Status status,
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/search/bloc/search_state.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
part of 'search_bloc.dart';

@freezed
@Freezed(makeCollectionsUnmodifiable: false)
class SearchState with _$SearchState {
const factory SearchState({
@Default(Status.loading()) Status status,
Expand Down
82 changes: 27 additions & 55 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: _flutterfire_internals
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.5"
analyzer:
dependency: transitive
description:
Expand Down Expand Up @@ -77,7 +77,7 @@ packages:
name: build_config
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.1"
build_daemon:
dependency: transitive
description:
Expand Down Expand Up @@ -105,7 +105,7 @@ packages:
name: build_runner_core
url: "https://pub.dartlang.org"
source: hosted
version: "7.2.4"
version: "7.2.6"
built_collection:
dependency: transitive
description:
Expand Down Expand Up @@ -196,14 +196,14 @@ packages:
name: cloud_firestore_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "5.7.7"
version: "5.8.2"
cloud_firestore_web:
dependency: transitive
description:
name: cloud_firestore_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.10"
version: "3.0.2"
code_builder:
dependency: transitive
description:
Expand Down Expand Up @@ -322,7 +322,7 @@ packages:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "1.24.0"
version: "2.1.0"
firebase_core_platform_interface:
dependency: transitive
description:
Expand All @@ -336,63 +336,63 @@ packages:
name: firebase_core_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.3"
version: "2.0.0"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
url: "https://pub.dartlang.org"
source: hosted
version: "2.9.0"
version: "3.0.2"
firebase_crashlytics_platform_interface:
dependency: transitive
description:
name: firebase_crashlytics_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.0"
version: "3.3.3"
firebase_messaging:
dependency: "direct main"
description:
name: firebase_messaging
url: "https://pub.dartlang.org"
source: hosted
version: "13.1.0"
version: "14.0.2"
firebase_messaging_platform_interface:
dependency: transitive
description:
name: firebase_messaging_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.0"
version: "4.2.3"
firebase_messaging_web:
dependency: transitive
description:
name: firebase_messaging_web
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.0"
version: "3.2.3"
firebase_remote_config:
dependency: "direct main"
description:
name: firebase_remote_config
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.20"
version: "3.0.2"
firebase_remote_config_platform_interface:
dependency: transitive
description:
name: firebase_remote_config_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.19"
version: "1.1.22"
firebase_remote_config_web:
dependency: transitive
description:
name: firebase_remote_config_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.8"
version: "1.1.11"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -488,14 +488,14 @@ packages:
name: flutter_local_notifications
url: "https://pub.dartlang.org"
source: hosted
version: "11.0.1"
version: "12.0.2"
flutter_local_notifications_linux:
dependency: transitive
description:
name: flutter_local_notifications_linux
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "2.0.0"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -610,7 +610,7 @@ packages:
name: graphs
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.2.0"
hive:
dependency: transitive
description:
Expand All @@ -631,7 +631,7 @@ packages:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0"
version: "0.15.1"
http:
dependency: transitive
description:
Expand Down Expand Up @@ -757,14 +757,14 @@ packages:
name: json_serializable
url: "https://pub.dartlang.org"
source: hosted
version: "6.5.1"
version: "6.5.3"
lints:
dependency: transitive
description:
name: lints
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -841,42 +841,14 @@ packages:
name: package_info_plus
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info_plus_linux:
dependency: transitive
description:
name: package_info_plus_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info_plus_macos:
dependency: transitive
description:
name: package_info_plus_macos
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "3.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info_plus_web:
dependency: transitive
description:
name: package_info_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info_plus_windows:
dependency: transitive
description:
name: package_info_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "2.0.1"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -1023,14 +995,14 @@ packages:
name: sentry
url: "https://pub.dartlang.org"
source: hosted
version: "6.12.2"
version: "6.13.1"
sentry_flutter:
dependency: "direct main"
description:
name: sentry_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "6.12.2"
version: "6.13.1"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -1084,14 +1056,14 @@ packages:
name: source_map_stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
source_maps:
dependency: transitive
description:
name: source_maps
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.10"
version: "0.10.11"
source_span:
dependency: transitive
description:
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Codephile.

publish_to: 'none'

version: 1.0.0+17
version: 1.0.0+19

environment:
sdk: ">=2.12.0 <3.0.0"
Expand All @@ -15,14 +15,14 @@ dependencies:
dio: ^4.0.4
dropdown_search: ^5.0.3
equatable: ^2.0.3
firebase_core: ^1.11.0
firebase_crashlytics: ^2.4.5
firebase_messaging: ^13.0.4
firebase_remote_config: ^2.0.19
firebase_core: ^2.1.0
firebase_crashlytics: ^3.0.2
firebase_messaging: ^14.0.2
firebase_remote_config: ^3.0.2
flutter:
sdk: flutter
flutter_bloc: ^8.0.1
flutter_local_notifications: ^11.0.1
flutter_local_notifications: ^12.0.2
flutter_native_splash: ^2.1.6
flutter_native_timezone: ^2.0.0
flutter_screenutil: ^5.5.4
Expand Down

0 comments on commit 2acf10b

Please sign in to comment.