Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update select contact page

AmanRajSinghMouryaa6023a15cb09
diff --git a/mobile/apps/photos/lib/emergency/components/recovery_date_selector.dart b/mobile/apps/photos/lib/emergency/components/recovery_date_selector.dart
new file mode 100644
index 0000000000..4db3dd5a1b
--- /dev/null
+++ b/mobile/apps/photos/lib/emergency/components/recovery_date_selector.dart
@@ -0,0 +1,90 @@
+import "package:flutter/material.dart";
+import "package:photos/l10n/l10n.dart";
+import "package:photos/theme/colors.dart";
+import "package:photos/theme/ente_theme.dart";
+import "package:photos/theme/text_style.dart";
+
+class RecoveryDateSelector extends StatelessWidget {
+ final int selectedDays;
+ final ValueChanged<int> onDaysChanged;
+
+ const RecoveryDateSelector({
+ required this.selectedDays,
+ required this.onDaysChanged,
+ super.key,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
+ final textTheme = getEnteTextTheme(context);
+
+ return Row(
+ mainAxisAlignment: MainAxisAlignment.spaceAround,
+ children: [
+ _DayChip(
+ label: context.l10n.trashDaysLeft(count: 7),
+ isSelected: selectedDays == 7,
+ onTap: () => onDaysChanged(7),
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ const SizedBox(width: 12),
+ _DayChip(
+ label: context.l10n.trashDaysLeft(count: 14),
+ isSelected: selectedDays == 14,
+ onTap: () => onDaysChanged(14),
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ const SizedBox(width: 12),
+ _DayChip(
+ label: context.l10n.trashDaysLeft(count: 30),
+ isSelected: selectedDays == 30,
+ onTap: () => onDaysChanged(30),
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ ],
+ );
+ }
+}
+
+class _DayChip extends StatelessWidget {
+ final String label;
+ final bool isSelected;
+ final VoidCallback onTap;
+ final EnteColorScheme colorScheme;
+ final EnteTextTheme textTheme;
+
+ const _DayChip({
+ required this.label,
+ required this.isSelected,
+ required this.onTap,
+ required this.colorScheme,
+ required this.textTheme,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: onTap,
+ child: AnimatedContainer(
+ duration: const Duration(milliseconds: 180),
+ curve: Curves.easeOutCubic,
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: isSelected ? colorScheme.greenBase : colorScheme.fillFaint,
+ borderRadius: BorderRadius.circular(14),
+ ),
+ child: Text(
+ label,
+ textAlign: TextAlign.center,
+ style: textTheme.bodyBold.copyWith(
+ color: isSelected ? Colors.white : colorScheme.textBase,
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/mobile/apps/photos/lib/emergency/emergency_page.dart b/mobile/apps/photos/lib/emergency/emergency_page.dart
index ec5144d2db..2c7390c1cb 100644
--- a/mobile/apps/photos/lib/emergency/emergency_page.dart
+++ b/mobile/apps/photos/lib/emergency/emergency_page.dart
@@ -404,7 +404,6 @@ class _EmergencyPageState extends State<EmergencyPage> {
: context.l10n.removeContact,
onTap: () async => Navigator.of(context).pop(true),
shouldSurfaceExecutionStates: false,
- isInAlert: true,
),
],
);
@@ -456,7 +455,7 @@ class _EmergencyPageState extends State<EmergencyPage> {
context,
title: context.l10n.cannotUpdateRecoveryTime,
message: context.l10n.cannotUpdateRecoveryTimeMessage,
- assetPath: "assets/warning-blue.png",
+ assetPath: "assets/warning-green.png",
);
}
}
diff --git a/mobile/apps/photos/lib/emergency/select_contact_page.dart b/mobile/apps/photos/lib/emergency/select_contact_page.dart
index d279dca5f0..72fd9e250c 100644
--- a/mobile/apps/photos/lib/emergency/select_contact_page.dart
+++ b/mobile/apps/photos/lib/emergency/select_contact_page.dart
@@ -2,322 +2,292 @@ import 'package:email_validator/email_validator.dart';
import 'package:flutter/material.dart';
import "package:logging/logging.dart";
import 'package:photos/core/configuration.dart';
+import "package:photos/emergency/components/recovery_date_selector.dart";
import "package:photos/emergency/emergency_service.dart";
import "package:photos/emergency/model.dart";
import "package:photos/generated/l10n.dart";
+import "package:photos/l10n/l10n.dart";
import "package:photos/models/api/collection/user.dart";
import "package:photos/services/account/user_service.dart";
import 'package:photos/services/collections_service.dart';
import 'package:photos/theme/ente_theme.dart';
-import 'package:photos/ui/actions/collection/collection_sharing_actions.dart';
-import 'package:photos/ui/components/buttons/button_widget.dart';
-import 'package:photos/ui/components/captioned_text_widget.dart';
-import 'package:photos/ui/components/divider_widget.dart';
-import 'package:photos/ui/components/menu_item_widget/menu_item_widget.dart';
-import 'package:photos/ui/components/menu_section_description_widget.dart';
-import 'package:photos/ui/components/menu_section_title.dart';
-import 'package:photos/ui/components/models/button_type.dart';
+import "package:photos/ui/components/alert_bottom_sheet.dart";
+import "package:photos/ui/components/base_bottom_sheet.dart";
+import "package:photos/ui/components/buttons/button_widget_v2.dart";
+import "package:photos/ui/components/divider_widget.dart";
+import "package:photos/ui/components/menu_item_widget/menu_item_widget_new.dart";
+import "package:photos/ui/components/text_input_widget_v2.dart";
import 'package:photos/ui/sharing/user_avator_widget.dart';
import "package:photos/ui/sharing/verify_identity_dialog.dart";
-import "package:photos/utils/dialog_util.dart";
-class AddContactPage extends StatefulWidget {
+Future<bool?> showAddContactSheet(
+ BuildContext context, {
+ required EmergencyInfo emergencyInfo,
+}) {
+ return showBaseBottomSheet<bool>(
+ context,
+ title: context.l10n.addTrustedContact,
+ headerSpacing: 20,
+ padding: const EdgeInsets.all(16),
+ isKeyboardAware: true,
+ backgroundColor: getEnteColorScheme(context).backgroundColour,
+ child: AddContactSheet(emergencyInfo: emergencyInfo),
+ );
+}
+
+class AddContactSheet extends StatefulWidget {
final EmergencyInfo emergencyInfo;
- const AddContactPage(this.emergencyInfo, {super.key});
+ const AddContactSheet({required this.emergencyInfo, super.key});
@override
- State<StatefulWidget> createState() => _AddContactPage();
+ State<AddContactSheet> createState() => _AddContactSheetState();
}
-class _AddContactPage extends State<AddContactPage> {
- String selectedEmail = '';
- String _email = '';
- bool isEmailListEmpty = false;
+class _AddContactSheetState extends State<AddContactSheet> {
+ final Set<String> _selectedEmails = <String>{};
+ String _email = "";
bool _emailIsValid = false;
- bool isKeypadOpen = false;
- late CollectionActions collectionActions;
- late final Logger _logger = Logger('AddContactPage');
+ int _selectedRecoveryDays = 14;
+ late final Logger _logger = Logger("AddContactSheet");
- // Focus nodes are necessary
final textFieldFocusNode = FocusNode();
final _textController = TextEditingController();
-
- @override
- void initState() {
- collectionActions = CollectionActions(CollectionsService.instance);
- super.initState();
- }
+ final _scrollController = ScrollController();
@override
void dispose() {
_textController.dispose();
+ textFieldFocusNode.dispose();
+ _scrollController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
- isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
- final enteTextTheme = getEnteTextTheme(context);
- final enteColorScheme = getEnteColorScheme(context);
+ final colorScheme = getEnteColorScheme(context);
+ final textTheme = getEnteTextTheme(context);
final List<User> suggestedUsers = _getSuggestedUser();
- isEmailListEmpty = suggestedUsers.isEmpty;
- return Scaffold(
- resizeToAvoidBottomInset: isKeypadOpen,
- appBar: AppBar(
- title: Text(
- AppLocalizations.of(context).addTrustedContact,
- ),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.start,
+ final List<String> emailsToAdd = _emailsToAdd;
+ final bool canAdd = emailsToAdd.isNotEmpty;
+ final String? emailForVerification = _emailForVerification;
+
+ return SingleChildScrollView(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- const SizedBox(height: 12),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: Text(
- AppLocalizations.of(context).addANewEmail,
- style: enteTextTheme.small
- .copyWith(color: enteColorScheme.textMuted),
- ),
- ),
- const SizedBox(height: 4),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: _getEmailField(),
+ TextInputWidgetV2(
+ hintText: AppLocalizations.of(context).enterEmail,
+ textEditingController: _textController,
+ focusNode: textFieldFocusNode,
+ keyboardType: TextInputType.emailAddress,
+ autoCorrect: false,
+ isClearable: true,
+ shouldUnfocusOnClearOrSubmit: true,
+ autofillHints: const [AutofillHints.email],
+ onChange: (value) {
+ _email = value.trim();
+ _emailIsValid = EmailValidator.validate(_email);
+ setState(() {});
+ },
),
- if (isEmailListEmpty)
- const Expanded(child: SizedBox.shrink())
- else
- Expanded(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: Column(
- children: [
- !isEmailListEmpty
- ? MenuSectionTitle(
- title: AppLocalizations.of(context)
- .orPickAnExistingOne,
- )
- : const SizedBox.shrink(),
- Expanded(
- child: ListView.builder(
- itemBuilder: (context, index) {
- if (index >= suggestedUsers.length) {
- return Padding(
- padding: const EdgeInsets.symmetric(
- vertical: 8.0,
- ),
- child: MenuSectionDescriptionWidget(
- content: AppLocalizations.of(context)
- .whyAddTrustContact,
- ),
- );
- }
- final currentUser = suggestedUsers[index];
- return Column(
- children: [
- MenuItemWidget(
- captionedTextWidget: CaptionedTextWidget(
- title: currentUser.email,
- ),
- leadingIconSize: 24.0,
- leadingIconWidget: UserAvatarWidget(
- currentUser,
- type: AvatarType.md,
- ),
- menuItemColor:
- getEnteColorScheme(context).fillFaint,
- pressedColor:
- getEnteColorScheme(context).fillFaint,
- trailingIcon:
- (selectedEmail == currentUser.email)
- ? Icons.check
- : null,
- onTap: () async {
- textFieldFocusNode.unfocus();
- if (selectedEmail == currentUser.email) {
- selectedEmail = '';
- } else {
- selectedEmail = currentUser.email;
- }
- setState(() => {});
- },
- isTopBorderRadiusRemoved: index > 0,
- isBottomBorderRadiusRemoved:
- index < (suggestedUsers.length - 1),
- ),
- (index == (suggestedUsers.length - 1))
- ? const SizedBox.shrink()
- : DividerWidget(
- dividerType: DividerType.menu,
- bgColor:
- getEnteColorScheme(context).fillFaint,
- ),
- ],
- );
- },
- itemCount: suggestedUsers.length + 1,
- // physics: const ClampingScrollPhysics(),
- ),
- ),
- ],
- ),
- ),
+ if (suggestedUsers.isNotEmpty) ...[
+ const SizedBox(height: 20),
+ Text(
+ context.l10n.chooseFromAnExistingContact,
+ style: textTheme.bodyMuted,
),
- SafeArea(
- child: Padding(
- padding: const EdgeInsets.only(
- top: 8,
- bottom: 8,
- left: 16,
- right: 16,
- ),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- const SizedBox(height: 8),
- ButtonWidget(
- buttonType: ButtonType.primary,
- buttonSize: ButtonSize.large,
- labelText: "Add",
- isDisabled: (selectedEmail == '' && !_emailIsValid),
- onTap: (selectedEmail == '' && !_emailIsValid)
- ? null
- : () async {
- final emailToAdd =
- selectedEmail == '' ? _email : selectedEmail;
- final choiceResult = await showChoiceActionSheet(
- context,
- title: AppLocalizations.of(context).warning,
- body: AppLocalizations.of(context)
- .confirmAddingTrustedContact(
- email: emailToAdd,
- numOfDays: 30,
- ),
- firstButtonLabel:
- AppLocalizations.of(context).proceed,
- isCritical: true,
- );
- if (choiceResult != null &&
- choiceResult.action == ButtonAction.first) {
- try {
- final r = await EmergencyContactService.instance
- .addContact(context, emailToAdd);
- if (r && mounted) {
- Navigator.of(context).pop(true);
- }
- } catch (e) {
- _logger.severe('Failed to add contact', e);
- await showErrorDialog(
- context,
- AppLocalizations.of(context).error,
- AppLocalizations.of(context)
- .somethingWentWrong,
- );
- }
+ const SizedBox(height: 8),
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxHeight: 190),
+ child: Scrollbar(
+ controller: _scrollController,
+ thumbVisibility: suggestedUsers.length > 2,
+ thickness: 4,
+ radius: const Radius.circular(3),
+ child: Container(
+ decoration: BoxDecoration(
+ color: colorScheme.fillFaint,
+ borderRadius: BorderRadius.circular(14),
+ ),
+ child: ListView.builder(
+ controller: _scrollController,
+ shrinkWrap: true,
+ padding: EdgeInsets.zero,
+ itemCount: suggestedUsers.length,
+ itemBuilder: (context, index) {
+ final user = suggestedUsers[index];
+ final isSelected = _selectedEmails.contains(user.email);
+ final isLastItem = index == suggestedUsers.length - 1;
+ return _buildGroupedSuggestionItem(
+ listIndex: index,
+ isLastItem: isLastItem,
+ child: MenuItemWidgetNew(
+ title: user.email,
+ titleColor: colorScheme.textMuted,
+ leadingIconWidget: UserAvatarWidget(
+ user,
+ type: AvatarType.md,
+ currentUserID: Configuration.instance.getUserID()!,
+ ),
+ leadingIconSize: 24,
+ menuItemColor: Colors.transparent,
+ trailingIcon: isSelected ? Icons.check : null,
+ trailingIconColor: colorScheme.greenBase,
+ onTap: () async {
+ textFieldFocusNode.unfocus();
+ if (isSelected) {
+ _selectedEmails.remove(user.email);
+ } else {
+ _selectedEmails.add(user.email);
}
+ setState(() {});
},
- ),
- const SizedBox(height: 12),
- GestureDetector(
- onTap: () async {
- if ((selectedEmail == '' && !_emailIsValid)) {
- await showErrorDialog(
- context,
- AppLocalizations.of(context).invalidEmailAddress,
- AppLocalizations.of(context).enterValidEmail,
- );
- return;
- }
- final emailToAdd =
- selectedEmail == '' ? _email : selectedEmail;
- await showDialog(
- context: context,
- builder: (BuildContext context) {
- return VerifyIdentifyDialog(
- self: false,
- email: emailToAdd,
- );
- },
+ borderRadius: 0,
+ ),
);
},
- child: Text(
- AppLocalizations.of(context).verifyIDLabel,
- textAlign: TextAlign.center,
- style: enteTextTheme.smallMuted.copyWith(
- decoration: TextDecoration.underline,
- ),
- ),
),
- const SizedBox(height: 12),
- ],
+ ),
),
),
+ ],
+ const SizedBox(height: 20),
+ Text(
+ context.l10n.chooseARecoveryTime,
+ style: textTheme.bodyMuted,
+ ),
+ const SizedBox(height: 12),
+ RecoveryDateSelector(
+ selectedDays: _selectedRecoveryDays,
+ onDaysChanged: (days) {
+ setState(() {
+ _selectedRecoveryDays = days;
+ });
+ },
+ ),
+ const SizedBox(height: 20),
+ ButtonWidgetV2(
+ buttonType: ButtonTypeV2.primary,
+ labelText: context.l10n.addTrustedContact,
+ isDisabled: !canAdd,
+ onTap: canAdd ? _onAddContactTap : null,
+ shouldSurfaceExecutionStates: false,
+ ),
+ const SizedBox(height: 12),
+ Center(
+ child: ButtonWidgetV2(
+ buttonType: ButtonTypeV2.link,
+ buttonSize: ButtonSizeV2.small,
+ labelText: AppLocalizations.of(context).verifyIDLabel,
+ isDisabled: emailForVerification == null,
+ shouldSurfaceExecutionStates: false,
+ onTap: emailForVerification == null
+ ? null
+ : () async {
+ await _onVerifyTap(emailForVerification);
+ },
+ ),
),
],
),
);
}
- void clearFocus() {
- _textController.clear();
- _email = _textController.text;
- _emailIsValid = false;
- textFieldFocusNode.unfocus();
- setState(() => {});
+ Future<void> _onAddContactTap() async {
+ final emailsToAdd = _emailsToAdd;
+ if (emailsToAdd.isEmpty) {
+ return;
+ }
+ final confirmed = await _showAddContactConfirmationSheet(
+ emailsToAdd,
+ _selectedRecoveryDays,
+ );
+ if (confirmed != true) {
+ return;
+ }
+
+ final failures = <String>[];
+ var hasSuccess = false;
+ for (final email in emailsToAdd) {
+ try {
+ final success = await EmergencyContactService.instance.addContact(
+ context,
+ email,
+ recoveryNoticeInDays: _selectedRecoveryDays,
+ );
+ if (success) {
+ hasSuccess = true;
+ } else {
+ failures.add(email);
+ }
+ } catch (e) {
+ _logger.severe("Failed to add contact for $email", e);
+ failures.add(email);
+ }
+ }
+
+ if (hasSuccess && mounted) {
+ Navigator.of(context).pop(true);
+ } else if (failures.isNotEmpty && mounted) {
+ await showAlertBottomSheet(
+ context,
+ title: AppLocalizations.of(context).error,
+ message: AppLocalizations.of(context).somethingWentWrong,
+ assetPath: "assets/warning-green.png",
+ );
+ }
}
- Widget _getEmailField() {
- return TextFormField(
- controller: _textController,
- focusNode: textFieldFocusNode,
- style: getEnteTextTheme(context).body,
- autofillHints: const [AutofillHints.email],
- decoration: InputDecoration(
- focusedBorder: OutlineInputBorder(
- borderRadius: const BorderRadius.all(Radius.circular(4.0)),
- borderSide:
- BorderSide(color: getEnteColorScheme(context).strokeMuted),
- ),
- fillColor: getEnteColorScheme(context).fillFaint,
- filled: true,
- hintText: AppLocalizations.of(context).enterEmail,
- contentPadding: const EdgeInsets.symmetric(
- horizontal: 16,
- vertical: 14,
- ),
- border: UnderlineInputBorder(
- borderSide: BorderSide.none,
- borderRadius: BorderRadius.circular(4),
- ),
- prefixIcon: Icon(
- Icons.email_outlined,
- color: getEnteColorScheme(context).strokeMuted,
+ Future<bool?> _showAddContactConfirmationSheet(
+ List<String> emails,
+ int recoveryDays,
+ ) {
+ final l10n = AppLocalizations.of(context);
+ final message = emails.length == 1
+ ? l10n.confirmAddingTrustedContact(
+ email: emails.first,
+ numOfDays: recoveryDays,
+ )
+ : l10n.confirmAddingTrustedContacts(
+ count: emails.length,
+ numOfDays: recoveryDays,
+ );
+
+ return showAlertBottomSheet<bool>(
+ context,
+ title: l10n.warning,
+ message: message,
+ assetPath: "assets/warning-green.png",
+ buttons: [
+ ButtonWidgetV2(
+ buttonType: ButtonTypeV2.critical,
+ labelText: l10n.proceed,
+ onTap: () async => Navigator.of(context).pop(true),
+ shouldSurfaceExecutionStates: false,
+ isInAlert: true,
),
- suffixIcon: _email == ''
- ? null
- : IconButton(
- onPressed: clearFocus,
- icon: Icon(
- Icons.cancel,
- color: getEnteColorScheme(context).strokeMuted,
- ),
- ),
- ),
- onChanged: (value) {
- if (selectedEmail != '') {
- selectedEmail = '';
- }
- _email = value.trim();
- _emailIsValid = EmailValidator.validate(_email);
- setState(() {});
+ ],
+ );
+ }
+
+ Future<void> _onVerifyTap(String emailToAdd) async {
+ if (!_emailsToAdd.contains(emailToAdd)) {
+ await showAlertBottomSheet(
+ context,
+ title: AppLocalizations.of(context).invalidEmailAddress,
+ message: AppLocalizations.of(context).enterValidEmail,
+ assetPath: "assets/warning-green.png",
+ );
+ return;
+ }
+
+ await showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return VerifyIdentifyDialog(self: false, email: emailToAdd);
},
- autocorrect: false,
- keyboardType: TextInputType.emailAddress,
- //initialValue: _email,
- textInputAction: TextInputAction.next,
);
}
@@ -326,6 +296,14 @@ class _AddContactPage extends State<AddContactPage> {
final Set<String> existingEmails = {};
final int ownerID = Configuration.instance.getUserID()!;
existingEmails.add(Configuration.instance.getEmail()!);
+
+ for (final contact in widget.emergencyInfo.othersEmergencyContact) {
+ if (!existingEmails.contains(contact.user.email)) {
+ existingEmails.add(contact.user.email);
+ suggestedUsers.add(contact.user);
+ }
+ }
+
for (final c in CollectionsService.instance.getActiveCollections()) {
if (c.owner.id == ownerID) {
for (final User u in c.sharees) {
@@ -343,6 +321,7 @@ class _AddContactPage extends State<AddContactPage> {
suggestedUsers.add(c.owner);
}
}
+
final cachedUserDetails = UserService.instance.getCachedUserDetails();
if (cachedUserDetails != null &&
(cachedUserDetails.familyData?.members?.isNotEmpty ?? false)) {
@@ -355,13 +334,58 @@ class _AddContactPage extends State<AddContactPage> {
}
if (_textController.text.trim().isNotEmpty) {
suggestedUsers.removeWhere(
- (element) => !element.email
- .toLowerCase()
- .contains(_textController.text.trim().toLowerCase()),
+ (element) => !element.email.toLowerCase().contains(
+ _textController.text.trim().toLowerCase(),
+ ),
);
}
suggestedUsers.sort((a, b) => a.email.compareTo(b.email));
return suggestedUsers;
}
+
+ List<String> get _emailsToAdd {
+ final lowerCaseToEmail = <String, String>{};
+
+ for (final email in _selectedEmails) {
+ lowerCaseToEmail[email.toLowerCase()] = email;
+ }
+ if (_emailIsValid) {
+ lowerCaseToEmail[_email.toLowerCase()] = _email;
+ }
+
+ return lowerCaseToEmail.values.toList()..sort();
+ }
+
+ String? get _emailForVerification {
+ final emailsToAdd = _emailsToAdd;
+ if (emailsToAdd.length == 1) {
+ return emailsToAdd.first;
+ }
+ return null;
+ }
+
+ Widget _buildGroupedSuggestionItem({
+ required int listIndex,
+ required bool isLastItem,
+ required Widget child,
+ }) {
+ final colorScheme = getEnteColorScheme(context);
+ return Column(
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.vertical(
+ top: listIndex == 0 ? const Radius.circular(14) : Radius.zero,
+ bottom: isLastItem ? const Radius.circular(14) : Radius.zero,
+ ),
+ child: child,
+ ),
+ if (!isLastItem)
+ DividerWidget(
+ dividerType: DividerType.menu,
+ bgColor: colorScheme.fillFaint,
+ ),
+ ],
+ );
+ }
}