Fix window resize crash on Chrome OS

This commit is contained in:
estevez-dev 2019-09-14 18:54:31 +03:00
parent 6da7a5ab90
commit abdcd49368
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,7 @@ class _EntityViewPageState extends State<EntityViewPage> {
StreamSubscription _stateSubscription;
Entity entity;
Entity forwardToMainPage;
bool _popScheduled = false;
@override
void initState() {
@ -34,7 +35,10 @@ class _EntityViewPageState extends State<EntityViewPage> {
Widget build(BuildContext context) {
Widget body;
if (MediaQuery.of(context).size.width >= Sizes.tabletMinWidth) {
if (!_popScheduled) {
_popScheduled = true;
_popAfterBuild();
}
body = PageLoadingIndicator();
} else {
body = entity.buildEntityPageWidget(context);

View File

@ -1,7 +1,7 @@
name: hass_client
description: Home Assistant Android Client
version: 0.6.6+660
version: 0.6.6+662
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"