Merge pull request #489 from estevez-dev/hotfix/0.7.1

Hotfix/0.7.1
This commit is contained in:
Yegor Vialov 2019-10-29 19:47:33 +02:00 committed by GitHub
commit 472fb1d367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -50,8 +50,6 @@ class _EntityViewPageState extends State<EntityViewPage> {
leading: IconButton(icon: Icon(Icons.arrow_back), onPressed: (){ leading: IconButton(icon: Icon(Icons.arrow_back), onPressed: (){
Navigator.pop(context); Navigator.pop(context);
}), }),
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: new Text("${entity.displayName}"), title: new Text("${entity.displayName}"),
), ),
body: body, body: body,

View File

@ -86,7 +86,11 @@ class RenderCustomLayoutBox extends RenderBox
int columnsCount; int columnsCount;
List<double> columnXPositions = []; List<double> columnXPositions = [];
List<double> columnYPositions = []; List<double> columnYPositions = [];
columnsCount = (constraints.maxWidth ~/ this.minColumnWidth); if (constraints.maxWidth < this.minColumnWidth) {
columnsCount = 1;
} else {
columnsCount = (constraints.maxWidth ~/ this.minColumnWidth);
}
if (childCount == 0 || columnsCount == 0) { if (childCount == 0 || columnsCount == 0) {
size = constraints.biggest; size = constraints.biggest;
assert(size.isFinite); assert(size.isFinite);

View File

@ -1,7 +1,8 @@
name: hass_client name: hass_client
description: Home Assistant Android Client description: Home Assistant Android Client
version: 0.7.1+711 version: 0.7.1+712
environment: environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0" sdk: ">=2.0.0-dev.68.0 <3.0.0"