refactor: swap gesture dector in top navbar to allow bigger tap zone
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/pr Build is passing
				
			This commit is contained in:
		
							parent
							
								
									9a3ae2de5c
								
							
						
					
					
						commit
						de69ee89cd
					
				| @ -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), |                           onTap: () { | ||||||
|                           child: MouseRegion( |                             onTap?.call(context, key); | ||||||
|                             cursor: SystemMouseCursors.click, |                           }, | ||||||
|                             child: GestureDetector( |                           child: Padding( | ||||||
|                               onTap: () { |                             padding: const EdgeInsets.symmetric(horizontal: 10), | ||||||
|                                 onTap?.call(context, key); |                             child: MouseRegion( | ||||||
|                               }, |                               cursor: SystemMouseCursors.click, | ||||||
|                               child: NavigationItem( |                               child: NavigationItem( | ||||||
|                                 item: value, |                                 item: value, | ||||||
|                                 selected: key == currentIndex, |                                 selected: key == currentIndex, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user