Use AppTextField instead of TextField.

This commit is contained in:
Elias Bonnici 2023-12-14 13:16:34 +01:00
parent 8fd753431d
commit 261a0c1f14
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF
4 changed files with 10 additions and 6 deletions

View File

@ -27,6 +27,7 @@ import '../../app/models.dart';
import '../../app/state.dart';
import '../../core/models.dart';
import '../../core/state.dart';
import '../../widgets/app_text_field.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
import '../models.dart';
@ -122,7 +123,7 @@ class _ConfigureChalrespDialogState
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
AppTextField(
key: keys.secretField,
autofocus: true,
controller: _secretController,

View File

@ -26,6 +26,7 @@ import '../../app/state.dart';
import '../../core/models.dart';
import '../../core/state.dart';
import '../../oath/models.dart';
import '../../widgets/app_text_field.dart';
import '../../widgets/choice_filter_chip.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
@ -120,7 +121,7 @@ class _ConfigureHotpDialogState extends ConsumerState<ConfigureHotpDialog> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
AppTextField(
key: keys.secretField,
controller: _secretController,
obscureText: _isObscure,

View File

@ -24,6 +24,7 @@ import '../../app/message.dart';
import '../../app/models.dart';
import '../../app/state.dart';
import '../../core/state.dart';
import '../../widgets/app_text_field.dart';
import '../../widgets/choice_filter_chip.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
@ -142,7 +143,7 @@ class _ConfigureStaticDialogState extends ConsumerState<ConfigureStaticDialog> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
AppTextField(
key: keys.secretField,
autofocus: true,
controller: _passwordController,

View File

@ -29,6 +29,7 @@ import '../../app/models.dart';
import '../../app/state.dart';
import '../../core/models.dart';
import '../../core/state.dart';
import '../../widgets/app_text_field.dart';
import '../../widgets/choice_filter_chip.dart';
import '../../widgets/responsive_dialog.dart';
import '../keys.dart' as keys;
@ -198,7 +199,7 @@ class _ConfigureYubiOtpDialogState
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextField(
AppTextField(
key: keys.publicIdField,
autofocus: true,
controller: _publicIdController,
@ -246,7 +247,7 @@ class _ConfigureYubiOtpDialogState
});
},
),
TextField(
AppTextField(
key: keys.privateIdField,
controller: _privateIdController,
autofillHints: isAndroid ? [] : const [AutofillHints.password],
@ -294,7 +295,7 @@ class _ConfigureYubiOtpDialogState
});
},
),
TextField(
AppTextField(
key: keys.secretField,
controller: _secretController,
autofillHints: isAndroid ? [] : const [AutofillHints.password],