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

This commit is contained in:
Hugo Pointcheval 2023-07-10 15:15:29 +02:00 committed by Malo Léon
parent 7c03ca3317
commit 1fa8bd6287

View File

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