mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	 243f80b6d5
			
		
	
	
		243f80b6d5
		
			
		
	
	
	
	
		
			
			* chore: remove use of svgWidget() * refactor: redundant code in svg * feat: add generator to generate flowy_svgs.g.dart * chore: reference new package in pubspec * chore: remove svg widget from flowy_infra * refactor: update usage in flowy_infra_ui * refactor: usage in appflowy_flutter * fix: error with script not running * fix: error with script not running * fix: use unix style file path * feat: use generation script for flowy svgs * feat: add task * fix: add required missing semicolon * fix: rebase errors * feat: update generate build script * fix: solve duplicate entries in the generated file * fix: compilation errors * fix: replace all spaces with an underscore * feat: use FlowySvgs * feat: reduce assets and simplify * refactor: do not return empty svg widget * fix: rebase errors * fix: analyzer warnings * chore: remove flowy_icons from tracking * chore: fix generate flowy icons script linux * chore: macos/linux script * chore: add rsync --------- Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com> Co-authored-by: Mathias Mogensen <mathias@appflowy.io>
		
			
				
	
	
		
			35 lines
		
	
	
		
			991 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			991 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:appflowy/generated/flowy_svgs.g.dart';
 | |
| import 'package:appflowy/generated/locale_keys.g.dart';
 | |
| import 'package:appflowy/plugins/database_view/tar_bar/tab_bar_view.dart';
 | |
| import 'package:appflowy/startup/plugin/plugin.dart';
 | |
| import 'package:appflowy_backend/protobuf/flowy-folder2/view.pb.dart';
 | |
| import 'package:easy_localization/easy_localization.dart';
 | |
| 
 | |
| class BoardPluginBuilder implements PluginBuilder {
 | |
|   @override
 | |
|   Plugin build(dynamic data) {
 | |
|     if (data is ViewPB) {
 | |
|       return DatabaseTabBarViewPlugin(pluginType: pluginType, view: data);
 | |
|     } else {
 | |
|       throw FlowyPluginException.invalidData;
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   String get menuName => LocaleKeys.board_menuName.tr();
 | |
| 
 | |
|   @override
 | |
|   FlowySvgData get icon => FlowySvgs.board_s;
 | |
| 
 | |
|   @override
 | |
|   PluginType get pluginType => PluginType.board;
 | |
| 
 | |
|   @override
 | |
|   ViewLayoutPB? get layoutType => ViewLayoutPB.Board;
 | |
| }
 | |
| 
 | |
| class BoardPluginConfig implements PluginConfig {
 | |
|   @override
 | |
|   bool get creatable => true;
 | |
| }
 |