This commit is contained in:
open-trade 2020-11-29 14:28:07 +08:00
parent 71493c8e7e
commit 8e14868709
2 changed files with 3 additions and 1 deletions

View File

@ -193,6 +193,7 @@ class FfiModel with ChangeNotifier {
showLoading('Waiting for image...', context);
_waitForImage = true;
}
notifyListeners();
}
}

View File

@ -163,6 +163,7 @@ class _RemotePageState extends State<RemotePage> {
@override
Widget build(BuildContext context) {
final pi = Provider.of<FfiModel>(context).pi;
EasyLoading.instance.loadingStyle = EasyLoadingStyle.light;
return WillPopScope(
onWillPop: () async {
@ -179,7 +180,7 @@ class _RemotePageState extends State<RemotePage> {
onPressed: () {
setState(() => _showBar = !_showBar);
}),
bottomNavigationBar: _showBar && FFI.ffiModel.pi.displays != null
bottomNavigationBar: _showBar && pi.displays != null
? BottomAppBar(
elevation: 10,
color: MyTheme.accent,