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

[Feature/Improvement] Color code workouts #7

Closed
a-mabe opened this issue Jun 13, 2023 · 6 comments
Closed

[Feature/Improvement] Color code workouts #7

a-mabe opened this issue Jun 13, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@a-mabe
Copy link
Owner

a-mabe commented Jun 13, 2023

Purpose: As a user, I want to be able to color code workouts.

More details:

Screenshot 2023-09-01 at 1 26 53 PM

Potentially add color picker: https://pub.dev/packages/flutter_material_color_picker

Acceptance Criteria:

  • When creating (or editing) a workout, the user can select a color to label the workout.
  • Color is used to set background color on the workout's list tile on the homepage and also when viewing the workout.
@a-mabe a-mabe added the enhancement New feature or request label Jun 13, 2023
@alastairrmcneill
Copy link
Contributor

Heya @a-mabe, do you want the colour of the workout to influence the Work = green and Rest = Red colour when running the workout?

@a-mabe
Copy link
Owner Author

a-mabe commented Sep 1, 2023

Hi @alastairrmcneill, just when viewing the workouts on the homescreen and in the view workout screen itself, like these mockups:

Screenshot 2023-09-01 at 1 26 53 PM

Likely would need to add a color picker during workout creation: https://pub.dev/packages/flutter_material_color_picker

And another DB column:

CREATE TABLE IF NOT EXISTS WorkoutTable(id TEXT PRIMARY KEY,
            title TEXT,
            numExercises INTEGER,
            exercises TEXT,
            ...
            workoutColor TEXT // Could save color name, hex value, etc.

Might also have to migrate the existing DB entries so as to not affect existing users.

@alastairrmcneill
Copy link
Contributor

@a-mabe I've created the PR for this issue, let me know if there are any issues with the 2 PRs open at the same time

@alastairrmcneill
Copy link
Contributor

Ah wait hold on, I forgot to ask you to assign it to me. Hope that doesn't cause any issues?

@a-mabe
Copy link
Owner Author

a-mabe commented Sep 5, 2023

No worries @alastairrmcneill, I will assign the issue now. I put the issues in the In Review column so they're on my todo list

a-mabe added a commit that referenced this issue Oct 15, 2023
Issue #7: Added custom colors to workouts
@a-mabe
Copy link
Owner Author

a-mabe commented Oct 15, 2023

Closed in #71. Thank you @alastairrmcneill for the contribution!

@a-mabe a-mabe closed this as completed Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants