flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

On first time Widget build method slider isn't fully rendered

Open ebelevics opened this issue 4 years ago • 3 comments

When I'm changing my views on Bottom navigation bar to view where xlider is located, at initial build slider doesn't take necessary sizes and values. For a millisecond xlider initializes and after that takes real proportions with needed values.

After switching for multiple times between pages, these micro differences at start does make bad UX overall.

ebelevics avatar Aug 14 '20 21:08 ebelevics

I've noticed this too. A quick fix/hack is to use the FadeIn package (https://pub.dev/packages/flutter_fadein) and set the duration to a couple of milliseconds. That way, the xlider is invisible when it's formatting itself on the first few frames.

Oberdiah avatar Nov 24 '20 03:11 Oberdiah

same problems.....

naxiemolv avatar Dec 13 '20 15:12 naxiemolv

Same issue here, hacked around it with AnimatedOpacity to fade in after 200ms.

alanmosely avatar Jan 25 '21 00:01 alanmosely