amugofjava / anytime_podcast_player

Simple, easy to use Podcast player app written in Flutter and Dart.
BSD 3-Clause "New" or "Revised" License
403 stars 101 forks source link

Smoother transition between placeholders to avoid flickering #49

Closed erdemyerebasmaz closed 3 years ago

erdemyerebasmaz commented 3 years ago

This PR addresses flickering issue when podcast image is loaded.

Previous method used FadeTransition, which transitioned the loaded images opacity from 0 to 1.0, which caused the flickering effect when switching between placeholder widgets to loaded image.

We replaced FadeTransition with AnimatedCrossFade widget to switch from placeholder widget to loaded image seamlessly.