From f91c91e0b1261cc36ebe5922450b7889ac2a2801 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Wed, 7 Aug 2024 23:36:41 +0800 Subject: [PATCH] chore: main page ui update --- ui/lib/welcome_page.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/lib/welcome_page.dart b/ui/lib/welcome_page.dart index 5209a39..fc8561b 100644 --- a/ui/lib/welcome_page.dart +++ b/ui/lib/welcome_page.dart @@ -57,6 +57,9 @@ class MediaCard extends StatelessWidget { @override Widget build(BuildContext context) { return Card( + shape: ContinuousRectangleBorder( + borderRadius: BorderRadius.circular(10.0), + ), //margin: const EdgeInsets.all(4), clipBehavior: Clip.hardEdge, elevation: 10, @@ -75,9 +78,10 @@ class MediaCard extends StatelessWidget { width: 140, height: 210, child: Ink.image( + fit: BoxFit.cover, image: NetworkImage( - "${APIs.imagesUrl}/${item.id}/poster.jpg", - )), + "${APIs.imagesUrl}/${item.id}/poster.jpg", + )), ), SizedBox( width: 140,