-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: glsl * fix: EEW警報のイベント終了を短縮 * fix: earthquake history * fix
- Loading branch information
Showing
5 changed files
with
21 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,6 @@ class SettingsScreen extends HookConsumerWidget { | |
title: const Text('このアプリケーションについて'), | ||
subtitle: const Text('利用規約やプライバシーポリシーを確認できます'), | ||
leading: const Icon(Icons.description), | ||
|
||
onTap: () => const AboutThisAppRoute().push<void>(context), | ||
), | ||
ListTile( | ||
|
@@ -161,25 +160,6 @@ class SettingsScreen extends HookConsumerWidget { | |
} | ||
|
||
Future<void> _onInquiryTap(BuildContext context, WidgetRef ref) async { | ||
// 問い合わせ方法を選択するダイアログを表示 | ||
final result = await showModalActionSheet<bool>( | ||
context: context, | ||
title: 'お問い合わせ方法を選択してください', | ||
cancelLabel: 'キャンセル', | ||
actions: [ | ||
const SheetAction( | ||
key: true, | ||
label: 'メールで問い合わせ', | ||
), | ||
const SheetAction( | ||
key: false, | ||
label: 'Xで問い合わせ', | ||
), | ||
], | ||
); | ||
if (result == null || !context.mounted) { | ||
return; | ||
} | ||
unawaited( | ||
showDialog<void>( | ||
barrierDismissible: false, | ||
|
@@ -216,34 +196,18 @@ Future<void> _onInquiryTap(BuildContext context, WidgetRef ref) async { | |
.join('&'); | ||
} | ||
|
||
if (result) { | ||
// メール | ||
final uri = Uri( | ||
scheme: 'mailto', | ||
path: '[email protected]', | ||
query: encodeQueryParameters( | ||
<String, String>{ | ||
'subject': 'EQMonitor 問い合わせ: ', | ||
'body': '\n[こちらに内容を記載してください]\n\n$base', | ||
}, | ||
), | ||
); | ||
await launchUrl(uri); | ||
} else { | ||
// X | ||
final uri = Uri( | ||
scheme: 'https', | ||
host: 'twitter.com', | ||
path: 'messages/compose', | ||
query: encodeQueryParameters( | ||
<String, String>{ | ||
'recipient_id': '1443896594529619970', | ||
'text': '\n[こちらに内容を記載してください]\n\n$base', | ||
}, | ||
), | ||
); | ||
await launchUrl(uri, mode: LaunchMode.externalNonBrowserApplication); | ||
} | ||
// メール | ||
final uri = Uri( | ||
scheme: 'mailto', | ||
path: '[email protected]', | ||
query: encodeQueryParameters( | ||
<String, String>{ | ||
'subject': 'EQMonitor 問い合わせ: ', | ||
'body': '\n[こちらに内容を記載してください]\n\n$base', | ||
}, | ||
), | ||
); | ||
await launchUrl(uri); | ||
if (!context.mounted) { | ||
return; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters