renderCanResetAction method

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

Implementation

Widget renderCanResetAction(BuildContext context, WidgetRef ref) {
  return Card(
    child: ListTile(
      leading: const Icon(Atlas.check_website_thin),
      title: Text(L10n.of(context).encryptionBackupEnabled),
      subtitle: Text(L10n.of(context).encryptionBackupEnabledExplainer),
      trailing: OutlinedButton.icon(
        icon: const Icon(Icons.toggle_on_outlined),
        onPressed: () => showConfirmResetDialog(context, ref),
        label: Text(L10n.of(context).reset),
      ),
    ),
  );
}