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

This commit was merged in pull request #224.
This commit is contained in:
2023-09-29 15:38:52 +00:00
committed by malo
parent 7c03ca3317
commit 1fa8bd6287
@@ -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(
onTap: () {
onTap?.call(context, key);
},
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,