Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Added support for enhanced enums in data/demos.dart #681

Merged
merged 8 commits into from
May 18, 2022

Conversation

ahmadabbas02
Copy link
Contributor

@ahmadabbas02 ahmadabbas02 commented May 12, 2022

This is my first pull request and I'm a new contributor

My pull request should fix issue #680 where I overrode the toString() function and I had to change the minimum SDK in pubspec.yaml to 2.17 to support enhanced enums

Fixes #680

@override
String toString() {
return name.toUpperCase();
}
}

extension GalleryDemoExtension on GalleryDemoCategory {
Copy link
Member

Choose a reason for hiding this comment

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

Hi, happy to have you contribute!

Enhanced enums allow us to get rid of this extension, altogether. Can we move displayTitle inside the enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, yes sure i fixed this in the new commit

pubspec.lock Outdated
@@ -49,7 +49,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.9.0"
version: "2.8.2"
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, 1 extra commit was created due to me having to pull from master cuz of conflicts

@godofredoc godofredoc changed the base branch from master to main May 18, 2022 05:36
@guidezpl guidezpl merged commit 24f79fd into flutter:main May 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use enhanced enums in data/demos.dart
2 participants