flutter_duration_picker icon indicating copy to clipboard operation
flutter_duration_picker copied to clipboard

Bad performance for bigger numbers.

Open vgabler opened this issue 4 years ago • 0 comments

This widget is great, but it creates a new layer for each hour. I get that this creates the effect of darker color, but it stops making any difference after 10h, and the bigger the value, the slower it becomes, until it just crashes the app. 500h is enough to crash the app on some devices.

I would sugest that it should stop creating layers after 10 iterations, or use only two layers by multiplying the color of the firs before going to the next.

vgabler avatar Apr 27 '20 17:04 vgabler