Skip to content

Commit

Permalink
chore: fix padding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Dec 8, 2023
1 parent b04d884 commit c592cff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/components/library/user_albums.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ 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,
alignment: WrapAlignment.center,
runAlignment: WrapAlignment.center,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
if (albums.isEmpty && albumsQuery.isLoadingNextPage)
if (albumsQuery.pages.isEmpty)
...List.generate(
10,
(index) => AlbumCard(FakeData.album),
Expand Down
7 changes: 4 additions & 3 deletions lib/components/shared/playbutton_card.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -59,8 +60,8 @@ class PlaybuttonCard extends HookWidget {
);

final end = useBreakpointValue<double>(
xs: 10,
sm: 10,
xs: 7,
sm: 7,
others: 15,
);

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c592cff

Please sign in to comment.