lichess-org / mobile

Lichess mobile app v2
GNU General Public License v3.0
1.35k stars 196 forks source link

Use a global cache to preload chess pieces #1079

Closed veloce closed 1 month ago

veloce commented 1 month ago

The goal is to bypass the default flutter ImageCache and Image widgets which can lead to unexpected reloading of images, causing a "blink" effect.

Closes #236

Probably fixes #1055 (I could not reproduce to ensure it) Probably fixes #1027

Incidentally fixes a failing test in auth_controller_test.dart that aroused in CI at the time of this PR.