Skip to content

Commit 987d866

Browse files
committed
added showChooseTagSheet to root_search_app_bar.dart
1 parent 40f9fd7 commit 987d866

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/components/appbars/root_search_app_bar.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:piwigo_ng/components/dialogs/tags_dialogs.dart';
23
import 'package:piwigo_ng/components/notification_dot.dart';
34
import 'package:piwigo_ng/components/popup_list_item.dart';
45
import 'package:piwigo_ng/services/preferences_service.dart';
@@ -147,6 +148,15 @@ class _RootSearchAppBarState extends State<RootSearchAppBar> {
147148
],
148149
),
149150
),
151+
PopupMenuItem(
152+
onTap: () => (
153+
showChooseTagSheet(context)
154+
),
155+
child: PopupListItem(
156+
icon: Icons.local_offer_outlined,
157+
text: appStrings.tags,
158+
),
159+
),
150160
if (Preferences.getUserStatus != 'guest')
151161
PopupMenuItem(
152162
onTap: () => Future.delayed(

0 commit comments

Comments
 (0)