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