mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 19:19:28 +00:00
feat: Add settings to control play button visibility on home shelves (#81)
Some checks failed
Some checks failed
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
parent
25c3346941
commit
5c7be5cbe4
10 changed files with 481 additions and 7 deletions
|
|
@ -15,10 +15,12 @@ class HomeShelf extends HookConsumerWidget {
|
|||
super.key,
|
||||
required this.shelf,
|
||||
required this.title,
|
||||
this.showPlayButton = false,
|
||||
});
|
||||
|
||||
final String title;
|
||||
final Shelf shelf;
|
||||
final bool showPlayButton;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
|
|
@ -26,6 +28,7 @@ class HomeShelf extends HookConsumerWidget {
|
|||
ShelfType.book => BookHomeShelf(
|
||||
title: title,
|
||||
shelf: shelf.asLibraryItemShelf,
|
||||
showPlayButton: showPlayButton,
|
||||
),
|
||||
ShelfType.authors => AuthorHomeShelf(
|
||||
title: title,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue