mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-27 03:41:47 +02:00
fix(ui): refine track action spacing
This commit is contained in:
@@ -77,6 +77,9 @@ class TrackCard extends StatelessWidget {
|
||||
final theme = Theme.of(context);
|
||||
final colorScheme = theme.colorScheme;
|
||||
final borderRadius = tokens.borderRadiusCover;
|
||||
final contentPadding = style == TrackCardStyle.flat
|
||||
? EdgeInsets.fromLTRB(tokens.gapMd, tokens.gapMd, 6, tokens.gapMd)
|
||||
: EdgeInsets.all(tokens.gapMd);
|
||||
|
||||
final Color? cardColor;
|
||||
if (isSelected) {
|
||||
@@ -111,7 +114,7 @@ class TrackCard extends StatelessWidget {
|
||||
children: [
|
||||
if (background != null) Positioned.fill(child: background!),
|
||||
Padding(
|
||||
padding: EdgeInsets.all(tokens.gapMd),
|
||||
padding: contentPadding,
|
||||
child: Row(
|
||||
children: [
|
||||
if (isSelectionMode) ...[
|
||||
|
||||
@@ -59,7 +59,7 @@ class TrackCollectionQuickActions extends ConsumerWidget {
|
||||
track,
|
||||
hasLocalPlaybackCandidate: hasLocalPlaybackCandidate,
|
||||
),
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
padding: EdgeInsets.zero,
|
||||
constraints: const BoxConstraints(minWidth: 48, minHeight: 48),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user