mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
Android: Better keyboard "done" actions.
This commit is contained in:
parent
112bc1ee08
commit
f2cb9de037
@ -222,6 +222,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
|
||||
helperText: '', // Prevents dialog resizing when enabled = false
|
||||
prefixIcon: Icon(Icons.business_outlined),
|
||||
),
|
||||
textInputAction: TextInputAction.next,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
// Update maxlengths
|
||||
@ -243,6 +244,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
|
||||
helperText: '', // Prevents dialog resizing when enabled = false
|
||||
prefixIcon: Icon(Icons.person_outline),
|
||||
),
|
||||
textInputAction: TextInputAction.next,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
// Update maxlengths
|
||||
@ -277,6 +279,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
|
||||
? 'Invalid length'
|
||||
: null),
|
||||
readOnly: _qrState == _QrScanState.success,
|
||||
textInputAction: TextInputAction.done,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_validateSecretLength = false;
|
||||
|
@ -67,6 +67,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
||||
prefixIcon: const Icon(Icons.password_outlined),
|
||||
errorText: _currentIsWrong ? 'Wrong password' : null,
|
||||
errorMaxLines: 3),
|
||||
textInputAction: TextInputAction.next,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_currentIsWrong = false;
|
||||
@ -123,6 +124,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
||||
prefixIcon: const Icon(Icons.password_outlined),
|
||||
enabled: !widget.state.hasKey || _currentPassword.isNotEmpty,
|
||||
),
|
||||
textInputAction: TextInputAction.next,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_newPassword = value;
|
||||
@ -143,6 +145,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
||||
enabled: (!widget.state.hasKey || _currentPassword.isNotEmpty) &&
|
||||
_newPassword.isNotEmpty,
|
||||
),
|
||||
textInputAction: TextInputAction.done,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_confirmPassword = value;
|
||||
|
@ -109,6 +109,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
|
||||
helperText: '', // Prevents dialog resizing when enabled = false
|
||||
prefixIcon: Icon(Icons.business_outlined),
|
||||
),
|
||||
textInputAction: TextInputAction.next,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_issuer = value.trim();
|
||||
@ -127,6 +128,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
|
||||
errorText: isValid ? null : 'Your account must have a name',
|
||||
prefixIcon: const Icon(Icons.people_alt_outlined),
|
||||
),
|
||||
textInputAction: TextInputAction.done,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_account = value.trim();
|
||||
|
Loading…
Reference in New Issue
Block a user