mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Display amplitude
This commit is contained in:
parent
699b99bcf8
commit
eec73cb16a
@ -79,9 +79,9 @@ class _RecordingDialogState extends State<RecordingDialog> {
|
||||
final decibalWidth =
|
||||
((_amplitude == null || _amplitude.current == double.negativeInfinity
|
||||
? 0
|
||||
: _amplitude.current / _amplitude.max)
|
||||
: 1 / _amplitude.current / _amplitude.max)
|
||||
.abs() +
|
||||
1) *
|
||||
2) *
|
||||
(maxDecibalWidth / 4).toDouble();
|
||||
final time =
|
||||
'${_duration.inMinutes.toString().padLeft(2, '0')}:${(_duration.inSeconds % 60).toString().padLeft(2, '0')}';
|
||||
|
Loading…
Reference in New Issue
Block a user