mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +01:00 
			
		
		
		
	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
						296dd2a589
					
				@ -215,15 +215,19 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
 | 
			
		||||
                              (maxPosition / AudioPlayerWidget.wavesCount)
 | 
			
		||||
                                      .round() *
 | 
			
		||||
                                  i)),
 | 
			
		||||
                      child: Opacity(
 | 
			
		||||
                        opacity: currentPosition > i ? 1 : 0.5,
 | 
			
		||||
                        child: Container(
 | 
			
		||||
                            margin: const EdgeInsets.symmetric(horizontal: 1),
 | 
			
		||||
                            decoration: BoxDecoration(
 | 
			
		||||
                              color: widget.color,
 | 
			
		||||
                              borderRadius: BorderRadius.circular(64),
 | 
			
		||||
                            ),
 | 
			
		||||
                            height: 64 * (waveform[i] / 1024)),
 | 
			
		||||
                      child: Container(
 | 
			
		||||
                        height: 32,
 | 
			
		||||
                        alignment: Alignment.center,
 | 
			
		||||
                        child: Opacity(
 | 
			
		||||
                          opacity: currentPosition > i ? 1 : 0.5,
 | 
			
		||||
                          child: Container(
 | 
			
		||||
                              margin: const EdgeInsets.symmetric(horizontal: 1),
 | 
			
		||||
                              decoration: BoxDecoration(
 | 
			
		||||
                                color: widget.color,
 | 
			
		||||
                                borderRadius: BorderRadius.circular(64),
 | 
			
		||||
                              ),
 | 
			
		||||
                              height: 32 * (waveform[i] / 1024)),
 | 
			
		||||
                        ),
 | 
			
		||||
                      ),
 | 
			
		||||
                    ),
 | 
			
		||||
                  )
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user