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

feat: multiple colors on the editor #45

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

erickzanardo
Copy link
Member

Description

Previously the editor would only allow two colors in the palette, this PR allows the user to have any number of colors.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Comment on lines 50 to 52
colors: (json['colors'] as List).map((e) => Color(e as int)).toList(),
backgroundColor: Color(json['background_color'] as int),
mapGridSize: json['map_grid_size'] as int,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should u make some form of migration for this? Considering it is a hydrated bloc?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point! I did a handling for that and wrote a test for it.

Copy link
Member

@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

@erickzanardo erickzanardo merged commit c6968a6 into main Mar 5, 2024
3 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