fix: increase tap target sizes to be more reasonable

This commit is contained in:
Michael Thomas 2023-03-22 07:51:27 -04:00
parent 3ad68594e2
commit c463f02a77
2 changed files with 4 additions and 2 deletions

View File

@ -66,8 +66,9 @@ class _MainLayoutState extends State<MainLayout> {
} }
}, },
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 20), padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 20),
child: SalomonBottomBar( child: SalomonBottomBar(
itemPadding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
items: <SalomonBottomBarItem>[ items: <SalomonBottomBarItem>[
SalomonBottomBarItem( SalomonBottomBarItem(
icon: const Icon(FlutterRemix.home_line), icon: const Icon(FlutterRemix.home_line),

View File

@ -31,8 +31,9 @@ class HeaderWidget extends StatelessWidget {
if (link != null) if (link != null)
GestureDetector( GestureDetector(
onTap: () => context.router.navigate(link!.href), onTap: () => context.router.navigate(link!.href),
behavior: HitTestBehavior.translucent,
child: Padding( child: Padding(
padding: const EdgeInsets.all(4), padding: const EdgeInsets.all(6),
child: Text( child: Text(
link!.text, link!.text,
style: furmanTextStyle(const TextStyle( style: furmanTextStyle(const TextStyle(