refactor: fade in images on home screen

This commit is contained in:
Dr-Blank 2024-10-06 05:52:29 -04:00
parent 09eafb2c28
commit 5b896e8b09
No known key found for this signature in database
GPG key ID: 7452CC63F210A266

View file

@ -114,6 +114,8 @@ class BookOnShelf extends HookConsumerWidget {
heroTagSuffix,
child: ClipRRect(
borderRadius: BorderRadius.circular(10),
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
child: coverImage.when(
data: (image) {
// return const BookCoverSkeleton();
@ -149,6 +151,7 @@ class BookOnShelf extends HookConsumerWidget {
),
),
),
),
// a play button on the book cover
if (showPlayButton)
_BookOnShelfPlayButton(