mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-28 22:37:50 +00:00
fix: add borderRadius to InkWell
This commit is contained in:
parent
d76dfe729a
commit
fdc2db7782
|
@ -131,28 +131,34 @@ class ServerConsumptionListTile extends StatelessWidget {
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(final BuildContext context) => InkWell(
|
Widget build(final BuildContext context) => Material(
|
||||||
onTap: onTap,
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
child: Padding(
|
color: Colors.transparent,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
child: InkWell(
|
||||||
child: ConsumptionListItem(
|
onTap: onTap,
|
||||||
title: service.displayName,
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
icon: SvgPicture.string(
|
child: Padding(
|
||||||
service.svgIcon,
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
width: 24.0,
|
child: ConsumptionListItem(
|
||||||
height: 24.0,
|
title: service.displayName,
|
||||||
colorFilter: ColorFilter.mode(
|
icon: SvgPicture.string(
|
||||||
Theme.of(context).colorScheme.onBackground,
|
service.svgIcon,
|
||||||
BlendMode.srcIn,
|
width: 24.0,
|
||||||
|
height: 24.0,
|
||||||
|
colorFilter: ColorFilter.mode(
|
||||||
|
Theme.of(context).colorScheme.onBackground,
|
||||||
|
BlendMode.srcIn,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
rightSideText: service.storageUsage.used.toString(),
|
||||||
|
percentage:
|
||||||
|
service.storageUsage.used.byte / volume.sizeTotal.byte,
|
||||||
|
color: volume.root
|
||||||
|
? Theme.of(context).colorScheme.primary
|
||||||
|
: Theme.of(context).colorScheme.secondary,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||||
|
dense: true,
|
||||||
),
|
),
|
||||||
rightSideText: service.storageUsage.used.toString(),
|
|
||||||
percentage: service.storageUsage.used.byte / volume.sizeTotal.byte,
|
|
||||||
color: volume.root
|
|
||||||
? Theme.of(context).colorScheme.primary
|
|
||||||
: Theme.of(context).colorScheme.secondary,
|
|
||||||
backgroundColor: Theme.of(context).colorScheme.surfaceVariant,
|
|
||||||
dense: true,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue