| 
									
										
										
										
											2022-02-28 22:38:53 +08:00
										 |  |  | import 'package:app_flowy/plugin/plugin.dart'; | 
					
						
							|  |  |  | import 'package:app_flowy/startup/startup.dart'; | 
					
						
							| 
									
										
										
										
											2022-03-01 16:05:45 +08:00
										 |  |  | import 'package:app_flowy/workspace/presentation/plugins/blank/blank.dart'; | 
					
						
							|  |  |  | import 'package:app_flowy/workspace/presentation/plugins/doc/document.dart'; | 
					
						
							| 
									
										
										
										
											2022-03-04 08:22:49 +08:00
										 |  |  | import 'package:app_flowy/workspace/presentation/plugins/grid/grid.dart'; | 
					
						
							| 
									
										
										
										
											2022-03-01 16:05:45 +08:00
										 |  |  | import 'package:app_flowy/workspace/presentation/plugins/trash/trash.dart'; | 
					
						
							| 
									
										
										
										
											2022-02-28 22:38:53 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | class PluginLoadTask extends LaunchTask { | 
					
						
							|  |  |  |   @override | 
					
						
							|  |  |  |   LaunchTaskType get type => LaunchTaskType.dataProcessing; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   @override | 
					
						
							|  |  |  |   Future<void> initialize(LaunchContext context) async { | 
					
						
							| 
									
										
										
										
											2022-03-01 11:22:39 +08:00
										 |  |  |     registerPlugin(builder: BlankPluginBuilder(), config: BlankPluginConfig()); | 
					
						
							|  |  |  |     registerPlugin(builder: TrashPluginBuilder(), config: TrashPluginConfig()); | 
					
						
							| 
									
										
										
										
											2022-03-01 10:25:21 +08:00
										 |  |  |     registerPlugin(builder: DocumentPluginBuilder()); | 
					
						
							| 
									
										
										
										
											2022-03-04 08:22:49 +08:00
										 |  |  |     registerPlugin(builder: GridPluginBuilder(), config: GridPluginConfig()); | 
					
						
							| 
									
										
										
										
											2022-02-28 22:38:53 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | } |