Skip to content

Commit 21295cd

Browse files
authored
chore: adjust layout responsiveness for audio tiles (#1441)
* chore: adjust layout responsiveness for audio tiles * chore: adjust flex distribution for title and subtitle in audio tile
1 parent 100a540 commit 21295cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/common/view/audio_tile.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class _AudioTileState extends State<AudioTile> {
141141
title: Row(
142142
spacing: kMediumSpace,
143143
children: [
144-
Expanded(flex: 2, child: title),
145-
if (widget.showSecondElement) Expanded(flex: 2, child: subtitle),
144+
Expanded(flex: 5, child: title),
145+
if (widget.showSecondElement) Expanded(flex: 5, child: subtitle),
146146
if (widget.showDuration)
147147
Expanded(
148148
child: _AudioTileDuration(splitter: '', audio: widget.audio),

lib/common/view/sliver_audio_tile_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class SliverAudioTileList extends StatelessWidget with WatchItMixin {
5555
return Padding(
5656
padding: const EdgeInsets.only(bottom: kSmallestSpace),
5757
child: AudioTile(
58-
showDuration: width > 1200,
59-
showSecondElement: width >= 1000,
58+
showDuration: width > 700,
59+
showSecondElement: width > 500,
6060
allowLeadingImage: allowLeadingImage,
6161
key: ValueKey(audio.path ?? audio.url ?? index),
6262
audioPageType: audioPageType,

0 commit comments

Comments
 (0)