fix: add borderRadius to InkWell
This commit is contained in:
parent
d76dfe729a
commit
fdc2db7782
|
@ -131,8 +131,12 @@ class ServerConsumptionListTile extends StatelessWidget {
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(final BuildContext context) => InkWell(
|
Widget build(final BuildContext context) => Material(
|
||||||
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: InkWell(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
child: ConsumptionListItem(
|
child: ConsumptionListItem(
|
||||||
|
@ -147,7 +151,8 @@ class ServerConsumptionListTile extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
rightSideText: service.storageUsage.used.toString(),
|
rightSideText: service.storageUsage.used.toString(),
|
||||||
percentage: service.storageUsage.used.byte / volume.sizeTotal.byte,
|
percentage:
|
||||||
|
service.storageUsage.used.byte / volume.sizeTotal.byte,
|
||||||
color: volume.root
|
color: volume.root
|
||||||
? Theme.of(context).colorScheme.primary
|
? Theme.of(context).colorScheme.primary
|
||||||
: Theme.of(context).colorScheme.secondary,
|
: Theme.of(context).colorScheme.secondary,
|
||||||
|
@ -155,5 +160,6 @@ class ServerConsumptionListTile extends StatelessWidget {
|
||||||
dense: true,
|
dense: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue