chore: improve ui & fix

This commit is contained in:
Simon Ding
2024-07-31 17:43:42 +08:00
parent 001b850d8f
commit 06f935871a
3 changed files with 5 additions and 6 deletions

View File

@@ -42,8 +42,9 @@ class WelcomePage extends ConsumerWidget {
: List.generate(value.length, (i) {
final item = value[i];
return Card(
margin: const EdgeInsets.all(4),
//margin: const EdgeInsets.all(4),
clipBehavior: Clip.hardEdge,
elevation: 5,
child: InkWell(
//splashColor: Colors.blue.withAlpha(30),
onTap: () {
@@ -58,9 +59,9 @@ class WelcomePage extends ConsumerWidget {
SizedBox(
width: 140,
height: 210,
child: Image.network(
child: Ink.image(image: NetworkImage(
"${APIs.imagesUrl}/${item.id}/poster.jpg",
fit: BoxFit.fill),
)) ,
),
SizedBox(
width: 140,