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

Jc2755/refactor challenges journeys #236

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Jcheng777
Copy link

@Jcheng777 Jcheng777 commented Dec 8, 2024

Summary

This pull request is the first step towards implementing abstracting repetitive logic into utility functions to improve reusability and maintainability.

  • abstracted event matching function
  • abstracted image url function

Remaining TODOs:

  • test on simulator
  • abstract other repetitive functions

…e numbers

- Adjusted progress bar width to dynamically scale based on the number of digits in total points, achievements, etc., providing better visual alignment.
- Implemented formatting to shorten large numbers (e.g., 1500 becomes 1.5K) for improved readability.
@dti-github-bot
Copy link
Member

[diff-counting] Significant lines: 284.

constraints.maxWidth,
height: 13,
alignment: Alignment.centerLeft,
child: Container(
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of having a container with a another container inside of it, the BoxDeocration should be able to be applied to the outer container.

@3TTemi
Copy link
Contributor

3TTemi commented Dec 9, 2024

Nice job abstracting out repetitive code. I still see a lot of places where we're using static inputs for attributes like top and height. We can start transitioning these to MediaQuery where relevant to maintain a dynamic UI. I also left a comment about reducing the nesting of Container widgets, which should help make the code cleaner.

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