mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-01 15:37:50 +08:00
chore: main page ui update
This commit is contained in:
@@ -57,6 +57,9 @@ class MediaCard extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Card(
|
return Card(
|
||||||
|
shape: ContinuousRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
),
|
||||||
//margin: const EdgeInsets.all(4),
|
//margin: const EdgeInsets.all(4),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
elevation: 10,
|
elevation: 10,
|
||||||
@@ -75,9 +78,10 @@ class MediaCard extends StatelessWidget {
|
|||||||
width: 140,
|
width: 140,
|
||||||
height: 210,
|
height: 210,
|
||||||
child: Ink.image(
|
child: Ink.image(
|
||||||
|
fit: BoxFit.cover,
|
||||||
image: NetworkImage(
|
image: NetworkImage(
|
||||||
"${APIs.imagesUrl}/${item.id}/poster.jpg",
|
"${APIs.imagesUrl}/${item.id}/poster.jpg",
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 140,
|
width: 140,
|
||||||
|
|||||||
Reference in New Issue
Block a user