refactor: swap gesture dector in top navbar to allow bigger tap zone #224

Merged
malo merged 1 commits from ui_kit/refactor/top_navbar into master 2023-09-29 15:38:53 +00:00

View File

@ -106,14 +106,14 @@ class TopNavigationBar extends TopNavigationBarComponent
.map<int, Widget>( .map<int, Widget>(
(key, value) => MapEntry( (key, value) => MapEntry(
key, key,
Padding( GestureDetector(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: () { onTap: () {
onTap?.call(context, key); onTap?.call(context, key);
}, },
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: MouseRegion(
cursor: SystemMouseCursors.click,
child: NavigationItem( child: NavigationItem(
item: value, item: value,
selected: key == currentIndex, selected: key == currentIndex,