Add double_tap_action support

This commit is contained in:
Yegor Vialov
2020-03-14 18:12:11 +00:00
parent 1ba9106d0b
commit 7e09d92fdf
7 changed files with 64 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class EntityButtonCardBody extends StatelessWidget {
return InkWell(
onTap: () => entityWrapper.handleTap(),
onLongPress: () => entityWrapper.handleHold(),
onDoubleTap: () => entityWrapper.handleDoubleTap(),
child: FractionallySizedBox(
widthFactor: 1,
child: Column(

View File

@ -64,6 +64,7 @@ class _GaugeCardBodyState extends State<GaugeCardBody> {
return InkWell(
onTap: () => entityWrapper.handleTap(),
onLongPress: () => entityWrapper.handleHold(),
onDoubleTap: () => entityWrapper.handleDoubleTap(),
child: AspectRatio(
aspectRatio: 1.5,
child: Stack(

View File

@ -60,6 +60,7 @@ class GlanceCardEntityContainer extends StatelessWidget {
),
onTap: () => entityWrapper.handleTap(),
onLongPress: () => entityWrapper.handleHold(),
onDoubleTap: () => entityWrapper.handleDoubleTap(),
),
);
}

View File

@ -37,6 +37,7 @@ class _LightCardBodyState extends State<LightCardBody> {
return InkWell(
onTap: () => entityWrapper.handleTap(),
onLongPress: () => entityWrapper.handleHold(),
onDoubleTap: () => entityWrapper.handleDoubleTap(),
child: AspectRatio(
aspectRatio: 1.5,
child: Stack(