showErrorDialog static method
Implementation
static Future<void> showErrorDialog(String message) async {
final ctx = RuiAppNavigator.context;
if (ctx == null) return;
await showDialog(
context: ctx,
builder: (_) => AlertDialog(
title: const Text('错误'),
content: Text(message),
actions: [
TextButton(
child: const Text('确定'),
onPressed: () => Navigator.of(ctx).pop(),
),
],
),
);
}