From e0ad71291cf67802a449adef27327f5d468211be Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Sat, 10 Aug 2024 11:23:17 +0800 Subject: [PATCH] fix width --- ui/lib/welcome_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/lib/welcome_page.dart b/ui/lib/welcome_page.dart index 577ddc9..552c7ad 100644 --- a/ui/lib/welcome_page.dart +++ b/ui/lib/welcome_page.dart @@ -27,6 +27,7 @@ class WelcomePage extends ConsumerWidget { return switch (data) { AsyncData(:final value) => SingleChildScrollView( child: Wrap( + alignment: WrapAlignment.spaceEvenly, spacing: isSmallScreen(context) ? 0 : 10, runSpacing: isSmallScreen(context) ? 10 : 20, children: value.isEmpty @@ -57,7 +58,7 @@ class WelcomePage extends ConsumerWidget { class MediaCard extends StatelessWidget { final MediaDetail item; - static const double smallWidth = 120; + static const double smallWidth = 110; static const double largeWidth = 140; const MediaCard({super.key, required this.item});