fix(profile): preserve decimal weight in profile display#305
fix(profile): preserve decimal weight in profile display#305LarytheLord wants to merge 2 commits intosimonoppowa:developfrom
Conversation
|
Nice work, hope the project will rise again π€ Btw isn't it better to merge into |
|
Thanks for the suggestion, @Elxas866. Good call on branch flow. I opened this against main because it is currently the default branch, but I can retarget to develop if maintainers prefer that for feature/fix intake.\n\nI also pushed a technical follow-up commit (48abbad) to make this PR more robust:\n- extracted weight display formatting into a dedicated utility\n- added unit tests for whole numbers, fractional values, floating-point noise, and rounding behavior\n\nSo this now has both the user-facing fix and regression coverage. |
|
Good suggestion on branch flow. Iβve now retargeted this PR to (and aligned the other still-open PRs in this repo to as well). |
|
Good suggestion on branch flow. Iβve now retargeted this PR to |
Summary
Fix profile weight display so decimal weights remain visible instead of always being rounded to whole numbers.
Closes #244
What changed
ProfileBloc.getDisplayWeight()to format based on value precision:80)80.5).0.Why
Issue #244 reports that selecting a decimal weight is possible in the weight picker but profile display rounds it away. This change preserves user-selected decimal precision in the profile subtitle.
Validation
I could not run Flutter/Dart tests in this environment because
flutteranddartCLIs are not installed here.