Skip to content

Commit b0b285c

Browse files
authored
Add focusNode property to SupaPasswordField
1 parent 2c74590 commit b0b285c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/components/_supa_password_field.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
22

33
/// Internal password field component with visibility toggle
44
class SupaPasswordField extends StatefulWidget {
5+
6+
final FocusNode? focusNode;
7+
58
/// Controller for the password field
69
final TextEditingController controller;
710

@@ -36,6 +39,7 @@ class SupaPasswordField extends StatefulWidget {
3639
this.textInputAction,
3740
this.onFieldSubmitted,
3841
this.autovalidateMode,
42+
this.focusNode,
3943
});
4044

4145
@override
@@ -48,6 +52,7 @@ class _SupaPasswordFieldState extends State<SupaPasswordField> {
4852
@override
4953
Widget build(BuildContext context) {
5054
return TextFormField(
55+
focusNode: widget.focusNode,
5156
controller: widget.controller,
5257
validator: widget.validator,
5358
obscureText: _obscureText,

0 commit comments

Comments
 (0)