Cleaning up some comments and imports.

This commit is contained in:
Joakim Troëng 2024-02-08 20:47:26 +01:00
parent 4543082bd9
commit 51521f032f
4 changed files with 5 additions and 10 deletions

View File

@ -22,8 +22,6 @@ const _prefix = 'otp.keys';
const _keyAction = '$_prefix.actions';
const _slotAction = '$_prefix.slot.actions';
/// const getOtpSlotKey = '$_prefix.pick_otp_slot';
// Key actions
const swapSlots = Key('$_keyAction.swap_slots');

View File

@ -31,7 +31,6 @@ import '../../widgets/app_input_decoration.dart';
import '../../widgets/app_text_field.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
import '../keys.dart';
import '../models.dart';
import '../state.dart';
import 'overwrite_confirm_dialog.dart';
@ -142,7 +141,7 @@ class _ConfigureChalrespDialogState
: null,
prefixIcon: const Icon(Icons.key_outlined),
suffixIcon: IconButton(
key: generateSecretKey,
key: keys.generateSecretKey,
icon: const Icon(Icons.refresh),
onPressed: () {
setState(() {

View File

@ -29,7 +29,6 @@ import '../../widgets/app_text_field.dart';
import '../../widgets/choice_filter_chip.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
import '../keys.dart';
import '../models.dart';
import '../state.dart';
import 'overwrite_confirm_dialog.dart';
@ -161,7 +160,7 @@ class _ConfigureStaticDialogState extends ConsumerState<ConfigureStaticDialog> {
: null,
prefixIcon: const Icon(Icons.key_outlined),
suffixIcon: IconButton(
key: generateSecretKey,
key: keys.generateSecretKey,
tooltip: l10n.s_generate_random,
icon: const Icon(Icons.refresh),
onPressed: () async {

View File

@ -34,7 +34,6 @@ import '../../widgets/app_text_field.dart';
import '../../widgets/choice_filter_chip.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
import '../keys.dart';
import '../models.dart';
import '../state.dart';
import 'overwrite_confirm_dialog.dart';
@ -216,7 +215,7 @@ class _ConfigureYubiOtpDialogState
: null,
prefixIcon: const Icon(Icons.public_outlined),
suffixIcon: IconButton(
key: useSerial,
key: keys.useSerial,
tooltip: l10n.s_use_serial,
icon: const Icon(Icons.auto_awesome_outlined),
onPressed: (info?.serial != null)
@ -252,7 +251,7 @@ class _ConfigureYubiOtpDialogState
: null,
prefixIcon: const Icon(Icons.key_outlined),
suffixIcon: IconButton(
key: generatePrivateId,
key: keys.generatePrivateId,
tooltip: l10n.s_generate_random,
icon: const Icon(Icons.refresh),
onPressed: () {
@ -289,7 +288,7 @@ class _ConfigureYubiOtpDialogState
: null,
prefixIcon: const Icon(Icons.key_outlined),
suffixIcon: IconButton(
key: generateSecretKey,
key: keys.generateSecretKey,
tooltip: l10n.s_generate_random,
icon: const Icon(Icons.refresh),
onPressed: () {