mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	fix: disable onTap when quick action button is disabled (#4713)
This commit is contained in:
		
							parent
							
								
									746f0817bc
								
							
						
					
					
						commit
						acd75befbc
					
				| @ -25,7 +25,11 @@ class MobileQuickActionButton extends StatelessWidget { | ||||
|     return Padding( | ||||
|       padding: const EdgeInsets.symmetric(horizontal: 4), | ||||
|       child: InkWell( | ||||
|         onTap: onTap, | ||||
|         onTap: () { | ||||
|           if (enable) { | ||||
|             onTap(); | ||||
|           } | ||||
|         }, | ||||
|         borderRadius: BorderRadius.circular(12), | ||||
|         overlayColor: | ||||
|             enable ? null : const MaterialStatePropertyAll(Colors.transparent), | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Richard Shiue
						Richard Shiue