From c463f02a771853c65db24bbab6222229d0ff33d2 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Wed, 22 Mar 2023 07:51:27 -0400 Subject: [PATCH] fix: increase tap target sizes to be more reasonable --- lib/src/layouts/main/index.dart | 3 ++- lib/src/widgets/header.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/layouts/main/index.dart b/lib/src/layouts/main/index.dart index 77c9cb6..fa93246 100644 --- a/lib/src/layouts/main/index.dart +++ b/lib/src/layouts/main/index.dart @@ -66,8 +66,9 @@ class _MainLayoutState extends State { } }, child: Padding( - padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 20), + padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 20), child: SalomonBottomBar( + itemPadding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16), items: [ SalomonBottomBarItem( icon: const Icon(FlutterRemix.home_line), diff --git a/lib/src/widgets/header.dart b/lib/src/widgets/header.dart index f7e15b5..fb1a4f9 100644 --- a/lib/src/widgets/header.dart +++ b/lib/src/widgets/header.dart @@ -31,8 +31,9 @@ class HeaderWidget extends StatelessWidget { if (link != null) GestureDetector( onTap: () => context.router.navigate(link!.href), + behavior: HitTestBehavior.translucent, child: Padding( - padding: const EdgeInsets.all(4), + padding: const EdgeInsets.all(6), child: Text( link!.text, style: furmanTextStyle(const TextStyle(