Fix padding in Device Picker

This commit is contained in:
Elias Bonnici 2024-04-10 09:39:53 +02:00
parent 4efc15a5c8
commit e78fd8f920
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

View File

@ -131,16 +131,7 @@ class DevicePickerContent extends ConsumerWidget {
),
];
return Padding(
padding: EdgeInsets.only(
bottom: !extended && children.length > 1
? 13
: !extended
? 6.5
: 0,
),
child: Column(children: children),
);
return Column(children: children);
}
}
@ -320,7 +311,7 @@ class _DeviceRowState extends ConsumerState<_DeviceRow> {
isDesktop && menuItems.isNotEmpty ? showMenuFn : null,
onLongPressStart: isAndroid ? showMenuFn : null,
child: Padding(
padding: const EdgeInsets.only(bottom: 6.5),
padding: const EdgeInsets.symmetric(vertical: 6.5),
child: widget.selected
? IconButton.filled(
tooltip: isDesktop ? tooltip : null,