WIP #183 tap_action support. State change event fix

This commit is contained in:
Yegor Vialov
2018-11-16 22:32:43 +02:00
parent 1bd04abd37
commit 82c9bd26d1
29 changed files with 89 additions and 50 deletions

View File

@ -30,7 +30,7 @@ class EntitiesCardWidget extends StatelessWidget {
Padding(
padding: EdgeInsets.fromLTRB(0.0, Sizes.rowPadding, 0.0, Sizes.rowPadding),
child: EntityModel(
entity: entity,
entityWrapper: entity,
handleTap: true,
child: entity.entity.buildDefaultWidget(context)
),

View File

@ -33,7 +33,7 @@ class GlanceCardWidget extends StatelessWidget {
SizedBox(
width: width / columnsCount,
child: EntityModel(
entity: entity,
entityWrapper: entity,
child: entity.entity.buildGlanceWidget(context, card.showName, card.showState),
handleTap: true
),

View File

@ -17,7 +17,7 @@ class MediaControlCardWidget extends StatelessWidget {
return Card(
child: EntityModel(
entity: card.linkedEntity,
entityWrapper: card.linkedEntity,
handleTap: null,
child: MediaPlayerWidget()
)

View File

@ -33,7 +33,7 @@ class UnsupportedCardWidget extends StatelessWidget {
Padding(
padding: EdgeInsets.fromLTRB(0.0, Sizes.rowPadding, 0.0, Sizes.rowPadding),
child: EntityModel(
entity: card.linkedEntity,
entityWrapper: card.linkedEntity,
handleTap: true,
child: card.linkedEntity.entity.buildDefaultWidget(context)
),