fix: add borderRadius to InkWell

This commit is contained in:
dettlaff 2024-02-10 02:56:55 +04:00 committed by Inex Code
parent d76dfe729a
commit fdc2db7782
1 changed files with 26 additions and 20 deletions

View File

@ -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,
), ),
), ),
); );