feat: small screen

This commit is contained in:
Simon Ding
2024-08-10 11:06:29 +08:00
parent 1391f55f44
commit b62e0e9bfd
3 changed files with 11 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ class WelcomePage extends ConsumerWidget {
return switch (data) {
AsyncData(:final value) => SingleChildScrollView(
child: Wrap(
spacing: isSmallScreen(context) ? 5 : 10,
spacing: isSmallScreen(context) ? 0 : 10,
runSpacing: isSmallScreen(context) ? 10 : 20,
children: value.isEmpty
? [
@@ -57,7 +57,7 @@ class WelcomePage extends ConsumerWidget {
class MediaCard extends StatelessWidget {
final MediaDetail item;
static const double smallWidth = 110;
static const double smallWidth = 126;
static const double largeWidth = 140;
const MediaCard({super.key, required this.item});