| 
									
										
										
										
											2023-12-27 11:11:14 +08:00
										 |  |  | import 'package:appflowy_editor/appflowy_editor.dart'; | 
					
						
							|  |  |  | import 'package:flutter/foundation.dart'; | 
					
						
							|  |  |  | import 'package:flutter/services.dart'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import '../startup.dart'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class DebugTask extends LaunchTask { | 
					
						
							|  |  |  |   const DebugTask(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   @override | 
					
						
							|  |  |  |   Future<void> initialize(LaunchContext context) async { | 
					
						
							|  |  |  |     // the hotkey manager is not supported on mobile
 | 
					
						
							|  |  |  |     if (PlatformExtension.isMobile && kDebugMode) { | 
					
						
							| 
									
										
										
										
											2024-01-29 10:26:45 +08:00
										 |  |  |       await SystemChannels.textInput.invokeMethod('TextInput.hide'); | 
					
						
							| 
									
										
										
										
											2023-12-27 11:11:14 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   @override | 
					
						
							|  |  |  |   Future<void> dispose() async {} | 
					
						
							|  |  |  | } |