showEncryptionNotSetupDialog function
- BuildContext context
Shows a dialog when encryption is not set up.
Implementation
Future<void> showEncryptionNotSetupDialog(BuildContext context) async {
await showDialog(
context: context,
builder: (ctx) => AlertDialog(
title: const Row(
children: [
Icon(Icons.warning_amber, color: Colors.orange),
SizedBox(width: 8),
Text('Encryption Not Set Up'),
],
),
content: const Text(
'Encryption has not been set up for your Pod. '
'Please set up encryption first through the initial setup process.',
),
actions: [
ElevatedButton(
onPressed: () => Navigator.pop(ctx),
child: const Text('OK'),
),
],
),
);
}