feat(ui): Switch to a grid-based layout

This commit is contained in:
2023-02-08 20:05:47 +01:00
parent 4688924ec2
commit bea3ff8b78
5 changed files with 312 additions and 117 deletions

View File

@@ -12,6 +12,7 @@ class ListItem extends StatelessWidget {
this.onRightSwipe,
this.cached = true,
this.extra = const [],
this.imageExtra,
super.key,
});
@@ -23,6 +24,8 @@ class ListItem extends StatelessWidget {
/// Extra widgets.
final List<Widget> extra;
final Widget? imageExtra;
/// Callbacks for the swipe functionality.
final void Function()? onLeftSwipe;
@@ -73,6 +76,7 @@ class ListItem extends StatelessWidget {
children: [
AnimeCoverImage(
cached: cached,
extra: imageExtra,
url: thumbnailUrl,
),