clean up audio players
This commit is contained in:
parent
bf2aa50556
commit
995afe1412
1 changed files with 32 additions and 32 deletions
|
|
@ -77,7 +77,8 @@ class const PlayerControls(
|
|||
? Column(
|
||||
mainAxisSize: .min,
|
||||
children: [
|
||||
slider(padding: const .symmetric(horizontal: 12)),
|
||||
SizedBox(height: 12),
|
||||
slider(padding: const .symmetric(horizontal: 16)),
|
||||
Row(
|
||||
children: [
|
||||
playButton,
|
||||
|
|
@ -94,15 +95,17 @@ class const PlayerControls(
|
|||
),
|
||||
],
|
||||
)
|
||||
: Row(
|
||||
children: [
|
||||
playButton,
|
||||
SizedBox(width: 8),
|
||||
Text(format(position), style: textStyle),
|
||||
Expanded(child: slider()),
|
||||
Text(format(duration), style: textStyle),
|
||||
...actions,
|
||||
],
|
||||
: IntrinsicHeight(
|
||||
child: Row(
|
||||
children: [
|
||||
playButton,
|
||||
SizedBox(width: 8),
|
||||
Text(format(position), style: textStyle),
|
||||
Expanded(child: slider()),
|
||||
Text(format(duration), style: textStyle),
|
||||
...actions,
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue