diff --git a/lib/feed/widgets/feed_page_app_bar.dart b/lib/feed/widgets/feed_page_app_bar.dart index 91f70c1c4..c050513da 100644 --- a/lib/feed/widgets/feed_page_app_bar.dart +++ b/lib/feed/widgets/feed_page_app_bar.dart @@ -333,33 +333,38 @@ class FeedAppBarGeneralActions extends StatelessWidget { ); }, ), - IconButton( - icon: Icon(Icons.shield_rounded, semanticLabel: l10n.modlog), - onPressed: () async { - HapticFeedback.mediumImpact(); + PopupMenuButton( + itemBuilder: (context) => [ + ThunderPopupMenuItem( + onTap: () async { + HapticFeedback.mediumImpact(); - AuthBloc authBloc = context.read(); - ThunderBloc thunderBloc = context.read(); - - await Navigator.of(context).push( - SwipeablePageRoute( - transitionDuration: thunderBloc.state.reduceAnimations ? const Duration(milliseconds: 100) : null, - backGestureDetectionStartOffset: !kIsWeb && Platform.isAndroid ? 45 : 0, - backGestureDetectionWidth: 45, - canOnlySwipeFromEdge: - disableFullPageSwipe(isUserLoggedIn: authBloc.state.isLoggedIn, state: thunderBloc.state, isPostPage: false) || !thunderBloc.state.enableFullScreenSwipeNavigationGesture, - builder: (otherContext) { - return MultiBlocProvider( - providers: [ - BlocProvider.value(value: feedBloc), - BlocProvider.value(value: thunderBloc), - ], - child: const ModlogFeedPage(), - ); - }, - ), - ); - }, + AuthBloc authBloc = context.read(); + ThunderBloc thunderBloc = context.read(); + + await Navigator.of(context).push( + SwipeablePageRoute( + transitionDuration: thunderBloc.state.reduceAnimations ? const Duration(milliseconds: 100) : null, + backGestureDetectionStartOffset: !kIsWeb && Platform.isAndroid ? 45 : 0, + backGestureDetectionWidth: 45, + canOnlySwipeFromEdge: + disableFullPageSwipe(isUserLoggedIn: authBloc.state.isLoggedIn, state: thunderBloc.state, isPostPage: false) || !thunderBloc.state.enableFullScreenSwipeNavigationGesture, + builder: (otherContext) { + return MultiBlocProvider( + providers: [ + BlocProvider.value(value: feedBloc), + BlocProvider.value(value: thunderBloc), + ], + child: const ModlogFeedPage(), + ); + }, + ), + ); + }, + icon: Icons.shield_rounded, + title: l10n.modlog, + ), + ], ), ], );