Skip to content

Commit

Permalink
- make input as read only (GuardianLabs#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrim0 committed Dec 28, 2023
1 parent d44fccb commit 91009a6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/feature/vault/ui/dialogs/on_code_input_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,19 @@ class _OnCodeInputDialogState extends State<OnCodeInputDialog> {

@override
Widget build(BuildContext context) => ScaffoldSafe(
header: HeaderBar(
header: const HeaderBar(
caption: 'Add via a Text Code',
leftButton: const HeaderBarButton.back(),
rightButton: HeaderBarButton.close(
onPressed: () {
Navigator.of(context).pop();
Navigator.of(context).pop();
},
),
leftButton: HeaderBarButton.back(),
),
children: [
// Input
Padding(
padding: paddingV20,
child: TextField(
autofocus: true,
controller: _controller,
enableInteractiveSelection: false,
decoration: const InputDecoration(labelText: ' Code '),
enableInteractiveSelection: false,
readOnly: true,
),
),
// Buttons
Expand Down

0 comments on commit 91009a6

Please sign in to comment.