2024-09-02 ほぼOK
This commit is contained in:
@ -26,7 +26,8 @@ class _HelperDialogState extends State<HelperDialog> {
|
||||
Text('ヘルプ'),
|
||||
],
|
||||
),
|
||||
content: Column(
|
||||
content: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@ -42,11 +43,17 @@ class _HelperDialogState extends State<HelperDialog> {
|
||||
});
|
||||
},
|
||||
),
|
||||
const Text('この画面を二度と表示しない'),
|
||||
const Flexible(
|
||||
child: Text(
|
||||
'この画面を二度と表示しない',
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: const Text('OK'),
|
||||
@ -68,6 +75,9 @@ Future<void> showHelperDialog(String message, String screenKey) async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
final showHelper = prefs.getBool('helper_$screenKey') ?? true;
|
||||
if (showHelper) {
|
||||
Get.dialog(HelperDialog(message: message, screenKey: screenKey));
|
||||
Get.dialog(
|
||||
HelperDialog(message: message, screenKey: screenKey),
|
||||
barrierDismissible: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user