Remove widgetHeigth

This commit is contained in:
Yegor Vialov 2018-11-04 22:57:53 +02:00
parent 788d682f2f
commit 9f7444eae0
4 changed files with 3 additions and 13 deletions

View File

@ -1,8 +1,6 @@
part of '../main.dart';
class ClimateEntity extends Entity {
@override
double widgetHeight = 38.0;
@override
EntityHistoryConfig historyConfig = EntityHistoryConfig(

View File

@ -1,8 +1,6 @@
part of '../main.dart';
class CoverEntity extends Entity {
@override
double widgetHeight = 38.0;
static const SUPPORT_OPEN = 1;
static const SUPPORT_CLOSE = 2;

View File

@ -27,8 +27,6 @@ class Entity {
static const inputWidth = 160.0;
static const rowPadding = 10.0;
double widgetHeight = 34.0;
Map attributes;
String domain;
String entityId;
@ -99,8 +97,7 @@ class Entity {
return EntityModel(
entity: this,
child: DefaultEntityContainer(
state: _buildStatePart(context),
height: widgetHeight,
state: _buildStatePart(context)
),
handleTap: true,
);
@ -125,7 +122,7 @@ class Entity {
return EntityModel(
entity: this,
child: EntityPageContainer(children: <Widget>[
DefaultEntityContainer(state: _buildStatePartForPage(context), height: widgetHeight),
DefaultEntityContainer(state: _buildStatePartForPage(context)),
LastUpdatedWidget(),
Divider(),
buildHistoryWidget(),

View File

@ -3,17 +3,14 @@ part of '../main.dart';
class DefaultEntityContainer extends StatelessWidget {
DefaultEntityContainer({
Key key,
@required this.state,
@required this.height
@required this.state
}) : super(key: key);
final Widget state;
final double height;
@override
Widget build(BuildContext context) {
return SizedBox(
//height: height,
child: Row(
children: <Widget>[
EntityIcon(),