WIP #183 tap_action support. State change event fix
This commit is contained in:
@ -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)
|
||||
),
|
||||
|
@ -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
|
||||
),
|
||||
|
@ -17,7 +17,7 @@ class MediaControlCardWidget extends StatelessWidget {
|
||||
|
||||
return Card(
|
||||
child: EntityModel(
|
||||
entity: card.linkedEntity,
|
||||
entityWrapper: card.linkedEntity,
|
||||
handleTap: null,
|
||||
child: MediaPlayerWidget()
|
||||
)
|
||||
|
@ -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)
|
||||
),
|
||||
|
Reference in New Issue
Block a user