mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	feat: customize transition animation for popup menu (#6071)
* feat: customize transition animation for popup menu * chore: add hint text for duplicate and favorite action * fix: flutter analyze
This commit is contained in:
		
							parent
							
								
									12cb9bde39
								
							
						
					
					
						commit
						f342f5ec7e
					
				| @ -64,6 +64,10 @@ class _MobileViewItemBottomSheetState extends State<MobileViewItemBottomSheet> { | ||||
|               case MobileViewItemBottomSheetBodyAction.duplicate: | ||||
|                 Navigator.pop(context); | ||||
|                 context.read<ViewBloc>().add(const ViewEvent.duplicate()); | ||||
|                 showToastNotification( | ||||
|                   context, | ||||
|                   message: LocaleKeys.button_duplicateSuccessfully.tr(), | ||||
|                 ); | ||||
|                 break; | ||||
|               case MobileViewItemBottomSheetBodyAction.share: | ||||
|                 // unimplemented | ||||
| @ -79,6 +83,12 @@ class _MobileViewItemBottomSheetState extends State<MobileViewItemBottomSheet> { | ||||
|                 context | ||||
|                     .read<FavoriteBloc>() | ||||
|                     .add(FavoriteEvent.toggle(widget.view)); | ||||
|                 showToastNotification( | ||||
|                   context, | ||||
|                   message: !widget.view.isFavorite | ||||
|                       ? LocaleKeys.button_favoriteSuccessfully.tr() | ||||
|                       : LocaleKeys.button_unfavoriteSuccessfully.tr(), | ||||
|                 ); | ||||
|                 break; | ||||
|               case MobileViewItemBottomSheetBodyAction.removeFromRecent: | ||||
|                 _removeFromRecent(context); | ||||
|  | ||||
| @ -47,15 +47,6 @@ class MobileHomePageHeader extends StatelessWidget { | ||||
|                       : _MobileUser(userProfile: userProfile), | ||||
|                 ), | ||||
|                 const HomePageSettingsPopupMenu(), | ||||
|                 // GestureDetector( | ||||
|                 //   onTap: () => context.push( | ||||
|                 //     MobileHomeSettingPage.routeName, | ||||
|                 //   ), | ||||
|                 //   child: const Padding( | ||||
|                 //     padding: EdgeInsets.all(8.0), | ||||
|                 //     child: FlowySvg(FlowySvgs.m_notification_settings_s), | ||||
|                 //   ), | ||||
|                 // ), | ||||
|                 const HSpace(8.0), | ||||
|               ], | ||||
|             ), | ||||
|  | ||||
| @ -3,9 +3,11 @@ import 'package:appflowy/generated/flowy_svgs.g.dart'; | ||||
| import 'package:appflowy/generated/locale_keys.g.dart'; | ||||
| import 'package:appflowy/mobile/presentation/presentation.dart'; | ||||
| import 'package:appflowy/mobile/presentation/setting/workspace/invite_members_screen.dart'; | ||||
| import 'package:appflowy/shared/popup_menu/appflowy_popup_menu.dart'; | ||||
| import 'package:easy_localization/easy_localization.dart'; | ||||
| import 'package:flowy_infra_ui/flowy_infra_ui.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter/material.dart' | ||||
|     hide PopupMenuButton, PopupMenuDivider, PopupMenuItem, PopupMenuEntry; | ||||
| import 'package:go_router/go_router.dart'; | ||||
| 
 | ||||
| enum _MobileSettingsPopupMenuItem { | ||||
|  | ||||
| @ -1,12 +1,14 @@ | ||||
| import 'package:appflowy/generated/flowy_svgs.g.dart'; | ||||
| import 'package:appflowy/generated/locale_keys.g.dart'; | ||||
| import 'package:appflowy/mobile/presentation/presentation.dart'; | ||||
| import 'package:appflowy/shared/popup_menu/appflowy_popup_menu.dart'; | ||||
| import 'package:appflowy/user/application/reminder/reminder_bloc.dart'; | ||||
| import 'package:appflowy/workspace/presentation/widgets/dialogs.dart'; | ||||
| import 'package:easy_localization/easy_localization.dart'; | ||||
| import 'package:flowy_infra_ui/flowy_infra_ui.dart'; | ||||
| import 'package:flutter/foundation.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter/material.dart' | ||||
|     hide PopupMenuButton, PopupMenuDivider, PopupMenuItem, PopupMenuEntry; | ||||
| import 'package:go_router/go_router.dart'; | ||||
| import 'package:provider/provider.dart'; | ||||
| 
 | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -349,6 +349,7 @@ | ||||
|     "addToFavorites": "Add to favorites", | ||||
|     "favoriteSuccessfully": "Favorited success", | ||||
|     "unfavoriteSuccessfully": "Unfavorited success", | ||||
|     "duplicateSuccessfully": "Duplicated successfully", | ||||
|     "rename": "Rename", | ||||
|     "helpCenter": "Help Center", | ||||
|     "add": "Add", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lucas.Xu
						Lucas.Xu