flutter-animated-counter icon indicating copy to clipboard operation
flutter-animated-counter copied to clipboard

Adding hideFractionOnRoundValue flag to hide the trailing decimal when value is a round number

Open penntheone opened this issue 1 year ago • 0 comments

A very simple change that adds a much needed feature. Recreated PR to change head repo.

Right now, when animating from 35.27 to 35, hardcoding fraction digits to 2 displays 35.00 with the ugly trailing 0s. Set this to true hides the decimal separator and all fraction digits, using the existing visible tag, rendering only 35. Fraction digits still exist in the widget tree and will re-animate up accordingly when say animating back from 35 to 35.27.

CleanShot 2024-08-12 at 19 08 01

penntheone avatar Aug 13 '24 15:08 penntheone