Skip to content

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
Collaborator

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
Collaborator

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.

4 participants