[mob] Use EntePopupMenuItem
This commit is contained in:
parent
b1cbf8526b
commit
7e5561e5cd
|
@ -18,6 +18,7 @@ import "package:photos/services/machine_learning/face_ml/face_clustering/cosine_
|
||||||
import "package:photos/services/machine_learning/face_ml/face_ml_result.dart";
|
import "package:photos/services/machine_learning/face_ml/face_ml_result.dart";
|
||||||
import "package:photos/services/machine_learning/face_ml/feedback/cluster_feedback.dart";
|
import "package:photos/services/machine_learning/face_ml/feedback/cluster_feedback.dart";
|
||||||
import 'package:photos/ui/actions/collection/collection_sharing_actions.dart';
|
import 'package:photos/ui/actions/collection/collection_sharing_actions.dart';
|
||||||
|
import "package:photos/ui/common/popup_item.dart";
|
||||||
import "package:photos/ui/viewer/people/cluster_breakup_page.dart";
|
import "package:photos/ui/viewer/people/cluster_breakup_page.dart";
|
||||||
|
|
||||||
class ClusterAppBar extends StatefulWidget {
|
class ClusterAppBar extends StatefulWidget {
|
||||||
|
@ -104,58 +105,20 @@ class _AppBarWidgetState extends State<ClusterAppBar> {
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<PopupMenuItem<ClusterPopupAction>> items = [];
|
final List<EntePopupMenuItem<ClusterPopupAction>> items = [];
|
||||||
|
|
||||||
items.addAll(
|
items.addAll(
|
||||||
[
|
[
|
||||||
// PopupMenuItem(
|
EntePopupMenuItem(
|
||||||
// value: ClusterPopupAction.setCover,
|
"Break up cluster",
|
||||||
// child: Row(
|
|
||||||
// children: [
|
|
||||||
// const Icon(Icons.image_outlined),
|
|
||||||
// const Padding(
|
|
||||||
// padding: EdgeInsets.all(8),
|
|
||||||
// ),
|
|
||||||
// Text(S.of(context).setCover),
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
const PopupMenuItem(
|
|
||||||
value: ClusterPopupAction.breakupCluster,
|
value: ClusterPopupAction.breakupCluster,
|
||||||
child: Row(
|
icon: Icons.analytics_outlined,
|
||||||
children: [
|
|
||||||
Icon(Icons.analytics_outlined),
|
|
||||||
Padding(
|
|
||||||
padding: EdgeInsets.all(8),
|
|
||||||
),
|
),
|
||||||
Text('Break up cluster'),
|
EntePopupMenuItem(
|
||||||
],
|
"Validate cluster",
|
||||||
),
|
|
||||||
),
|
|
||||||
const PopupMenuItem(
|
|
||||||
value: ClusterPopupAction.validateCluster,
|
value: ClusterPopupAction.validateCluster,
|
||||||
child: Row(
|
icon: Icons.search_off_outlined,
|
||||||
children: [
|
|
||||||
Icon(Icons.search_off_outlined),
|
|
||||||
Padding(
|
|
||||||
padding: EdgeInsets.all(8),
|
|
||||||
),
|
),
|
||||||
Text('Validate cluster'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
// PopupMenuItem(
|
|
||||||
// value: ClusterPopupAction.hide,
|
|
||||||
// child: Row(
|
|
||||||
// children: [
|
|
||||||
// const Icon(Icons.visibility_off_outlined),
|
|
||||||
// const Padding(
|
|
||||||
// padding: EdgeInsets.all(8),
|
|
||||||
// ),
|
|
||||||
// Text(S.of(context).hide),
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue