mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-07 03:29:29 +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,
|
heroTagSuffix,
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
|
child: AnimatedSwitcher(
|
||||||
|
duration: const Duration(milliseconds: 300),
|
||||||
child: coverImage.when(
|
child: coverImage.when(
|
||||||
data: (image) {
|
data: (image) {
|
||||||
// return const BookCoverSkeleton();
|
// return const BookCoverSkeleton();
|
||||||
|
|
@ -149,6 +151,7 @@ class BookOnShelf extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
// a play button on the book cover
|
// a play button on the book cover
|
||||||
if (showPlayButton)
|
if (showPlayButton)
|
||||||
_BookOnShelfPlayButton(
|
_BookOnShelfPlayButton(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue