refactor: swap gesture dector in top navbar to allow bigger tap zone
This commit is contained in:
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user