ente/lib/ui/common/report_bug_popup.dart

32 lines
699 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:photos/utils/email_util.dart';
PopupMenuButton<dynamic> reportBugPopupMenu(BuildContext context) {
return PopupMenuButton(
itemBuilder: (context) {
final List<PopupMenuItem> items = [];
items.add(
PopupMenuItem(
value: 1,
child: Row(
children: const [
2022-05-17 11:38:21 +00:00
Text("Contact support"),
],
),
),
);
return items;
},
onSelected: (value) async {
if (value == 1) {
2022-06-11 08:23:52 +00:00
await sendLogs(
context,
"Contact support",
"support@ente.io",
postShare: () {},
);
}
},
);
}