Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used @freezed to create Rating class #1669

Merged
merged 12 commits into from
Jun 26, 2024
Merged

Used @freezed to create Rating class #1669

merged 12 commits into from
Jun 26, 2024

Conversation

j-j-gajjar
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented May 11, 2024

Everyone contributing to this PR have now signed the CLA. Thanks!

Copy link
Collaborator

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@@ -30,6 +30,8 @@ abstract class $ChartDataCopyWith<$Res> {
_$ChartDataCopyWithImpl<$Res, ChartData>;
@useResult
$Res call({double rawRating, common.Rating rating});

$RatingCopyWith<$Res> get rating;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an issue with nested freezed classes here - this is only part of ratings.dart but not chart.dart. Chart is another freezed class, that has a Rating field.

I don't know from the top of my head how to fix this, though.

Copy link

github-actions bot commented May 28, 2024

Everyone contributing to this PR have now signed the CLA. Thanks!

Copy link

github-actions bot commented Jun 5, 2024

Everyone contributing to this PR have now signed the CLA. Thanks!

Copy link
Member

@d-loose d-loose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code generation really doesn't work well with namespaces and typedefs sometimes.. Thanks for fixing!

@spydon spydon merged commit 89831b5 into ubuntu:main Jun 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants