ente/auth/lib/ui/common/report_bug.dart

32 lines
702 B
Dart
Raw Normal View History

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