From 917336baf3d3bd8c74622de18efc59fade94ceb9 Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Sat, 29 Jul 2023 00:28:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=88?= =?UTF-8?q?=E6=99=82=E3=81=AE=E3=83=80=E3=82=A4=E3=82=A2=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/repository/import_export_repository.dart | 2 ++ .../import_export_page/folder_select_dialog.dart | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/repository/import_export_repository.dart b/lib/repository/import_export_repository.dart index d698630f4..6436bfb10 100644 --- a/lib/repository/import_export_repository.dart +++ b/lib/repository/import_export_repository.dart @@ -29,6 +29,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーからインポートする", ), ); if (result == null) return; @@ -116,6 +117,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーに保存する", ), ); if (result == null) return; diff --git a/lib/view/settings_page/import_export_page/folder_select_dialog.dart b/lib/view/settings_page/import_export_page/folder_select_dialog.dart index c1e86cf20..ea6105fd3 100644 --- a/lib/view/settings_page/import_export_page/folder_select_dialog.dart +++ b/lib/view/settings_page/import_export_page/folder_select_dialog.dart @@ -15,11 +15,13 @@ class FolderResult { class FolderSelectDialog extends ConsumerStatefulWidget { final Account account; final String? fileShowTarget; + final String confirmationText; const FolderSelectDialog({ super.key, required this.account, required this.fileShowTarget, + required this.confirmationText, }); @override @@ -35,7 +37,7 @@ class FolderSelectDialogState extends ConsumerState { return AlertDialog( title: Column( children: [ - const Text("フォルダ選択"), + const Text("フォルダー選択"), Row( children: [ if (path.isNotEmpty) @@ -126,7 +128,7 @@ class FolderSelectDialogState extends ConsumerState { onPressed: () { Navigator.of(context).pop(FolderResult(path.lastOrNull)); }, - child: const Text("このフォルダーに保存する"), + child: Text(widget.confirmationText), ) ], );