Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][locker] Rename input sheet component

aman-pilot6187de1c196a
diff --git a/mobile/apps/locker/lib/ui/components/input_sheet.dart b/mobile/apps/locker/lib/ui/components/text_input_sheet.dart
similarity index 98%
rename from mobile/apps/locker/lib/ui/components/input_sheet.dart
rename to mobile/apps/locker/lib/ui/components/text_input_sheet.dart
index dfa2f43cf3..02092aee4f 100644
--- a/mobile/apps/locker/lib/ui/components/input_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/text_input_sheet.dart
@@ -2,7 +2,7 @@ import "package:ente_base/typedefs.dart";
import "package:ente_components/ente_components.dart";
import "package:flutter/material.dart";
-Future<dynamic> showInputSheet(
+Future<dynamic> showTextInputSheet(
BuildContext context, {
required String title,
required String hintText,
diff --git a/mobile/apps/locker/lib/ui/sharing/manage_links_widget.dart b/mobile/apps/locker/lib/ui/sharing/manage_links_widget.dart
index c4ab651941..27e73605c8 100644
--- a/mobile/apps/locker/lib/ui/sharing/manage_links_widget.dart
+++ b/mobile/apps/locker/lib/ui/sharing/manage_links_widget.dart
@@ -20,7 +20,7 @@ import "package:locker/services/collections/collections_api_client.dart";
import "package:locker/services/collections/collections_service.dart";
import "package:locker/services/collections/models/collection.dart";
import "package:locker/services/collections/models/public_url.dart";
-import "package:locker/ui/components/input_sheet.dart";
+import "package:locker/ui/components/text_input_sheet.dart";
import "package:locker/ui/sharing/pickers/device_limit_picker_page.dart";
import "package:locker/ui/sharing/pickers/link_expiry_picker_page.dart";
import "package:locker/utils/collection_actions.dart";
@@ -140,7 +140,7 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
value: () => url.passwordEnabled,
onChanged: () async {
if (!url.passwordEnabled) {
- await showInputSheet(
+ await showTextInputSheet(
context,
title: context.l10n.setAPassword,
submitButtonLabel: context.l10n.lockButtonLabel,
diff --git a/mobile/apps/locker/lib/utils/collection_actions.dart b/mobile/apps/locker/lib/utils/collection_actions.dart
index 7715e27032..80deba22e4 100644
--- a/mobile/apps/locker/lib/utils/collection_actions.dart
+++ b/mobile/apps/locker/lib/utils/collection_actions.dart
@@ -19,8 +19,8 @@ import 'package:locker/services/collections/models/collection.dart';
import "package:locker/services/configuration.dart";
import "package:locker/services/trash/trash_service.dart";
import "package:locker/ui/components/delete_confirmation_sheet.dart";
-import "package:locker/ui/components/input_sheet.dart";
import "package:locker/ui/components/subscription_required_sheet.dart";
+import "package:locker/ui/components/text_input_sheet.dart";
import 'package:logging/logging.dart';
/// Utility class for common collection actions like edit and delete
@@ -34,7 +34,7 @@ class CollectionActions {
}) async {
Collection? createdCollection;
- final result = await showInputSheet(
+ final result = await showTextInputSheet(
context,
title: context.l10n.newCollection,
hintText: context.l10n.enterCollectionName,
@@ -78,7 +78,7 @@ class CollectionActions {
return;
}
- await showInputSheet(
+ await showTextInputSheet(
context,
title: context.l10n.renameCollection,
initialValue: collection.name ?? '',