clean up audio players
This commit is contained in:
parent
bf2aa50556
commit
995afe1412
2 changed files with 32 additions and 32 deletions
|
|
@ -36,10 +36,8 @@ class const AudioPlayer(
|
||||||
return player.dispose;
|
return player.dispose;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return SizedBox(
|
return Card(
|
||||||
height: 60,
|
color: Theme.of(context).colorScheme.surfaceContainerHigh,
|
||||||
child: Card(
|
|
||||||
color: Theme.of(context).colorScheme.surfaceContainer,
|
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: .symmetric(horizontal: 8),
|
padding: .symmetric(horizontal: 8),
|
||||||
child: PlayerControls(
|
child: PlayerControls(
|
||||||
|
|
@ -60,7 +58,6 @@ class const AudioPlayer(
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,8 @@ class const PlayerControls(
|
||||||
? Column(
|
? Column(
|
||||||
mainAxisSize: .min,
|
mainAxisSize: .min,
|
||||||
children: [
|
children: [
|
||||||
slider(padding: const .symmetric(horizontal: 12)),
|
SizedBox(height: 12),
|
||||||
|
slider(padding: const .symmetric(horizontal: 16)),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
playButton,
|
playButton,
|
||||||
|
|
@ -94,7 +95,8 @@ class const PlayerControls(
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: Row(
|
: IntrinsicHeight(
|
||||||
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
playButton,
|
playButton,
|
||||||
SizedBox(width: 8),
|
SizedBox(width: 8),
|
||||||
|
|
@ -104,6 +106,7 @@ class const PlayerControls(
|
||||||
...actions,
|
...actions,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue