renderRecoverAction method

dynamic renderRecoverAction(
  1. dynamic context,
  2. dynamic ref
)

Implementation

Widget renderRecoverAction(BuildContext context, WidgetRef ref) {
  return Card(
    child: ListTile(
      leading: const Icon(Icons.warning),
      title: Text(L10n.of(context).encryptionBackupProvideKey),
      subtitle: Text(L10n.of(context).encryptionBackupProvideKeyExplainer),
      trailing: Wrap(
        children: [
          OutlinedButton(
            onPressed: () => showProviderRecoveryKeyDialog(context, ref),
            child: Text(L10n.of(context).encryptionBackupProvideKeyAction),
          ),
          if (allowDisabling)
            OutlinedButton(
              onPressed: () => showConfirmResetDialog(context, ref),
              child: Text(L10n.of(context).reset),
            ),
        ],
      ),
    ),
  );
}