mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-22 07:08:49 +00:00
make non-clickable rows appear non-clickable
This commit is contained in:
parent
edbf25bc71
commit
a2a5d6deea
1 changed files with 23 additions and 17 deletions
|
@ -16,9 +16,7 @@ class StandardListRow extends StatelessWidget {
|
||||||
final leading = buildLeading(context);
|
final leading = buildLeading(context);
|
||||||
final trailing = buildTrailing(context);
|
final trailing = buildTrailing(context);
|
||||||
|
|
||||||
return InkWell(
|
final base = Container(
|
||||||
onTap: () => onTap?.call(context),
|
|
||||||
child: Container(
|
|
||||||
height: 56,
|
height: 56,
|
||||||
padding: EdgeInsets.only(left: 24, right: 24),
|
padding: EdgeInsets.only(left: 24, right: 24),
|
||||||
decoration: decoration ??
|
decoration: decoration ??
|
||||||
|
@ -33,8 +31,16 @@ class StandardListRow extends StatelessWidget {
|
||||||
if (trailing != null) trailing,
|
if (trailing != null) trailing,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (onTap != null) {
|
||||||
|
return InkWell(
|
||||||
|
onTap: () => onTap?.call(context),
|
||||||
|
child: base,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return base;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget? buildLeading(BuildContext context) => null;
|
Widget? buildLeading(BuildContext context) => null;
|
||||||
|
|
Loading…
Reference in a new issue