small fixes for UI issues

pull/1186/head
ggurdin 1 year ago
parent d9e225b385
commit fe54a71d33

@ -357,7 +357,10 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
color: widget.color,
borderRadius: BorderRadius.circular(2),
),
width: 2,
// #Pangea
// width: 2,
width: 1,
// Pangea#
height: 32 * (waveform[i] / 1024),
),
),
@ -376,27 +379,29 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
),
),
),
const SizedBox(width: 8),
Badge(
isLabelVisible: audioPlayer != null,
label: audioPlayer == null
? null
: Text(
'${audioPlayer.speed.toString()}x',
),
backgroundColor: Theme.of(context).colorScheme.secondary,
textColor: Theme.of(context).colorScheme.onSecondary,
child: InkWell(
splashColor: widget.color.withAlpha(128),
borderRadius: BorderRadius.circular(64),
onTap: audioPlayer == null ? null : _toggleSpeed,
child: Icon(
Icons.mic_none_outlined,
color: widget.color,
),
),
),
const SizedBox(width: 8),
// #Pangea
// const SizedBox(width: 8),
// Badge(
// isLabelVisible: audioPlayer != null,
// label: audioPlayer == null
// ? null
// : Text(
// '${audioPlayer.speed.toString()}x',
// ),
// backgroundColor: Theme.of(context).colorScheme.secondary,
// textColor: Theme.of(context).colorScheme.onSecondary,
// child: InkWell(
// splashColor: widget.color.withAlpha(128),
// borderRadius: BorderRadius.circular(64),
// onTap: audioPlayer == null ? null : _toggleSpeed,
// child: Icon(
// Icons.mic_none_outlined,
// color: widget.color,
// ),
// ),
// ),
// const SizedBox(width: 8),
// Pangea#
],
),
);

@ -32,7 +32,10 @@ class RecordingDialogState extends State<RecordingDialog> {
final List<double> amplitudeTimeline = [];
static const int bitRate = 64000;
static const int samplingRate = 44100;
// #Pangea
// static const int samplingRate = 44100;
static const int samplingRate = 22050;
// Pangea#
Future<void> startRecording() async {
try {

@ -43,6 +43,19 @@ class LoginScaffold extends StatelessWidget {
// #Pangea
extendBodyBehindAppBar: true,
// body: body,
body: Container(
decoration: const BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
image: AssetImage('assets/login_wallpaper.png'),
),
),
alignment: Alignment.center,
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 480),
child: body,
),
),
// backgroundColor: isMobileMode
// ? null
// : Theme.of(context).colorScheme.surface.withOpacity(0.8),

Loading…
Cancel
Save