Merge branch 'krille/audio-player-design' into 'main'

fix: Make audioplayer waveforms thinner and better clickable

See merge request famedly/fluffychat!791
This commit is contained in:
Krille Fear 2022-03-28 18:32:42 +00:00
commit 296dd2a589

View File

@ -215,6 +215,9 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
(maxPosition / AudioPlayerWidget.wavesCount)
.round() *
i)),
child: Container(
height: 32,
alignment: Alignment.center,
child: Opacity(
opacity: currentPosition > i ? 1 : 0.5,
child: Container(
@ -223,7 +226,8 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
color: widget.color,
borderRadius: BorderRadius.circular(64),
),
height: 64 * (waveform[i] / 1024)),
height: 32 * (waveform[i] / 1024)),
),
),
),
)