mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
chore: fix padding issues
This commit is contained in:
parent
b04d8849e7
commit
c592cff1ee
@ -85,7 +85,7 @@ class UserAlbums extends HookConsumerWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
controller: controller,
|
controller: controller,
|
||||||
child: Skeletonizer(
|
child: Skeletonizer(
|
||||||
enabled: albums.isEmpty && albumsQuery.isLoadingNextPage,
|
enabled: albumsQuery.pages.isEmpty,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
runSpacing: 20,
|
runSpacing: 20,
|
||||||
@ -93,7 +93,7 @@ class UserAlbums extends HookConsumerWidget {
|
|||||||
runAlignment: WrapAlignment.center,
|
runAlignment: WrapAlignment.center,
|
||||||
crossAxisAlignment: WrapCrossAlignment.center,
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
if (albums.isEmpty && albumsQuery.isLoadingNextPage)
|
if (albumsQuery.pages.isEmpty)
|
||||||
...List.generate(
|
...List.generate(
|
||||||
10,
|
10,
|
||||||
(index) => AlbumCard(FakeData.album),
|
(index) => AlbumCard(FakeData.album),
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import 'package:auto_size_text/auto_size_text.dart';
|
import 'package:auto_size_text/auto_size_text.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
|
import 'package:gap/gap.dart';
|
||||||
import 'package:skeletonizer/skeletonizer.dart';
|
import 'package:skeletonizer/skeletonizer.dart';
|
||||||
|
|
||||||
import 'package:spotube/collections/assets.gen.dart';
|
import 'package:spotube/collections/assets.gen.dart';
|
||||||
@ -59,8 +60,8 @@ class PlaybuttonCard extends HookWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
final end = useBreakpointValue<double>(
|
final end = useBreakpointValue<double>(
|
||||||
xs: 10,
|
xs: 7,
|
||||||
sm: 10,
|
sm: 7,
|
||||||
others: 15,
|
others: 15,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ class PlaybuttonCard extends HookWidget {
|
|||||||
onPressed: isLoading ? null : onAddToQueuePressed,
|
onPressed: isLoading ? null : onAddToQueuePressed,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 5),
|
const Gap(5),
|
||||||
IconButton(
|
IconButton(
|
||||||
style: IconButton.styleFrom(
|
style: IconButton.styleFrom(
|
||||||
backgroundColor: theme.colorScheme.primaryContainer,
|
backgroundColor: theme.colorScheme.primaryContainer,
|
||||||
|
Loading…
Reference in New Issue
Block a user