mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 02:59:28 +00:00
refactor: fade in images on home screen
This commit is contained in:
parent
09eafb2c28
commit
5b896e8b09
1 changed files with 34 additions and 31 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue