Remove widgetHeigth
This commit is contained in:
parent
788d682f2f
commit
9f7444eae0
@ -1,8 +1,6 @@
|
|||||||
part of '../main.dart';
|
part of '../main.dart';
|
||||||
|
|
||||||
class ClimateEntity extends Entity {
|
class ClimateEntity extends Entity {
|
||||||
@override
|
|
||||||
double widgetHeight = 38.0;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EntityHistoryConfig historyConfig = EntityHistoryConfig(
|
EntityHistoryConfig historyConfig = EntityHistoryConfig(
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
part of '../main.dart';
|
part of '../main.dart';
|
||||||
|
|
||||||
class CoverEntity extends Entity {
|
class CoverEntity extends Entity {
|
||||||
@override
|
|
||||||
double widgetHeight = 38.0;
|
|
||||||
|
|
||||||
static const SUPPORT_OPEN = 1;
|
static const SUPPORT_OPEN = 1;
|
||||||
static const SUPPORT_CLOSE = 2;
|
static const SUPPORT_CLOSE = 2;
|
||||||
|
@ -27,8 +27,6 @@ class Entity {
|
|||||||
static const inputWidth = 160.0;
|
static const inputWidth = 160.0;
|
||||||
static const rowPadding = 10.0;
|
static const rowPadding = 10.0;
|
||||||
|
|
||||||
double widgetHeight = 34.0;
|
|
||||||
|
|
||||||
Map attributes;
|
Map attributes;
|
||||||
String domain;
|
String domain;
|
||||||
String entityId;
|
String entityId;
|
||||||
@ -99,8 +97,7 @@ class Entity {
|
|||||||
return EntityModel(
|
return EntityModel(
|
||||||
entity: this,
|
entity: this,
|
||||||
child: DefaultEntityContainer(
|
child: DefaultEntityContainer(
|
||||||
state: _buildStatePart(context),
|
state: _buildStatePart(context)
|
||||||
height: widgetHeight,
|
|
||||||
),
|
),
|
||||||
handleTap: true,
|
handleTap: true,
|
||||||
);
|
);
|
||||||
@ -125,7 +122,7 @@ class Entity {
|
|||||||
return EntityModel(
|
return EntityModel(
|
||||||
entity: this,
|
entity: this,
|
||||||
child: EntityPageContainer(children: <Widget>[
|
child: EntityPageContainer(children: <Widget>[
|
||||||
DefaultEntityContainer(state: _buildStatePartForPage(context), height: widgetHeight),
|
DefaultEntityContainer(state: _buildStatePartForPage(context)),
|
||||||
LastUpdatedWidget(),
|
LastUpdatedWidget(),
|
||||||
Divider(),
|
Divider(),
|
||||||
buildHistoryWidget(),
|
buildHistoryWidget(),
|
||||||
|
@ -3,17 +3,14 @@ part of '../main.dart';
|
|||||||
class DefaultEntityContainer extends StatelessWidget {
|
class DefaultEntityContainer extends StatelessWidget {
|
||||||
DefaultEntityContainer({
|
DefaultEntityContainer({
|
||||||
Key key,
|
Key key,
|
||||||
@required this.state,
|
@required this.state
|
||||||
@required this.height
|
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final Widget state;
|
final Widget state;
|
||||||
final double height;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
//height: height,
|
|
||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
EntityIcon(),
|
EntityIcon(),
|
||||||
|
Reference in New Issue
Block a user