fixed ui bug with setstate
This commit is contained in:
@@ -86,12 +86,12 @@ class _PlayControlsState extends State<PlayControls>
|
||||
//skip doing anything else if we're still loading...
|
||||
return;
|
||||
}
|
||||
await playPause();
|
||||
setState(() {
|
||||
if (!_listenHandler.isPlaying()) {
|
||||
_isLoading = true;
|
||||
}
|
||||
});
|
||||
await playPause();
|
||||
},
|
||||
child: SizedBox(
|
||||
width: 100,
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import 'package:audioplayers/audioplayers.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'Globals.dart';
|
||||
import 'YthingRadio.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
AudioLogger.logLevel = AudioLogLevel.info;
|
||||
await loadAboutUrl();
|
||||
await setupListenHandler();
|
||||
runApp(const YthingRadio());
|
||||
|
||||
Reference in New Issue
Block a user