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

@ -32,7 +32,10 @@ class RecordingDialogState extends State<RecordingDialog> {
final List<double> amplitudeTimeline = []; final List<double> amplitudeTimeline = [];
static const int bitRate = 64000; 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 { Future<void> startRecording() async {
try { try {

@ -43,6 +43,19 @@ class LoginScaffold extends StatelessWidget {
// #Pangea // #Pangea
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
// body: body, // 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 // backgroundColor: isMobileMode
// ? null // ? null
// : Theme.of(context).colorScheme.surface.withOpacity(0.8), // : Theme.of(context).colorScheme.surface.withOpacity(0.8),

Loading…
Cancel
Save