fix settings list tile padding

This commit is contained in:
PartyDonut 2025-04-06 16:03:31 +02:00
parent c492e151b3
commit 9bc1463cd5
2 changed files with 80 additions and 35 deletions

View file

@ -29,8 +29,13 @@ class FlatButton extends ConsumerWidget {
super.key,
});
bool get _hasInteraction => onTap != null || onLongPress != null || onDoubleTap != null;
@override
Widget build(BuildContext context, WidgetRef ref) {
if (!_hasInteraction) {
return child ?? Container();
}
return Stack(
fit: StackFit.passthrough,
children: [