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:
commit
51bb45ef32
1 changed files with 13 additions and 9 deletions
|
|
@ -215,15 +215,19 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
|
||||||
(maxPosition / AudioPlayerWidget.wavesCount)
|
(maxPosition / AudioPlayerWidget.wavesCount)
|
||||||
.round() *
|
.round() *
|
||||||
i)),
|
i)),
|
||||||
child: Opacity(
|
child: Container(
|
||||||
opacity: currentPosition > i ? 1 : 0.5,
|
height: 32,
|
||||||
child: Container(
|
alignment: Alignment.center,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 1),
|
child: Opacity(
|
||||||
decoration: BoxDecoration(
|
opacity: currentPosition > i ? 1 : 0.5,
|
||||||
color: widget.color,
|
child: Container(
|
||||||
borderRadius: BorderRadius.circular(64),
|
margin: const EdgeInsets.symmetric(horizontal: 1),
|
||||||
),
|
decoration: BoxDecoration(
|
||||||
height: 64 * (waveform[i] / 1024)),
|
color: widget.color,
|
||||||
|
borderRadius: BorderRadius.circular(64),
|
||||||
|
),
|
||||||
|
height: 32 * (waveform[i] / 1024)),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue