mirror of
https://github.com/amigan/calls.git
synced 2024-11-21 12:29:47 -05:00
wip
This commit is contained in:
parent
9395e8801e
commit
f68dd7a1f6
2 changed files with 9 additions and 3 deletions
|
@ -84,6 +84,8 @@ class Stillbox extends ChangeNotifier {
|
|||
} on WebSocketChannelException catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ class _MainRadioState extends State<MainRadio> {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
sb.callQStream.stream.listen((ctAdd) {
|
||||
setState(() {
|
||||
queueLen += ctAdd;
|
||||
|
@ -62,7 +63,7 @@ class _MainRadioState extends State<MainRadio> {
|
|||
_callLoop(sb);
|
||||
}
|
||||
|
||||
void _handleSocketError(dynamic error) {
|
||||
void _handleSocketError(Exception error) {
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
PageRouteBuilder(
|
||||
|
@ -73,6 +74,9 @@ class _MainRadioState extends State<MainRadio> {
|
|||
transitionDuration: const Duration(milliseconds: 0),
|
||||
),
|
||||
);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text(error)),
|
||||
);
|
||||
}
|
||||
|
||||
void _callLoop(Stillbox sb) async {
|
||||
|
|
Loading…
Reference in a new issue