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