[FIX] added keyvariable to the field.
This commit is contained in:
@@ -11,6 +11,7 @@ export 'src/style.dart';
|
||||
class AstromicFields {
|
||||
//S1 -- Text Field
|
||||
static Widget text({
|
||||
Key? key,
|
||||
required TextEditingController controller,
|
||||
//
|
||||
void Function(String v)? onChanged,
|
||||
@@ -38,6 +39,7 @@ class AstromicFields {
|
||||
Column(
|
||||
children: [
|
||||
AstromicTextField(
|
||||
key: key,
|
||||
textController: controller,
|
||||
onChanged: onChanged,
|
||||
onSubmited: onSubmited,
|
||||
|
||||
@@ -328,6 +328,7 @@ class _AstromicTextFieldState extends State<AstromicTextField> {
|
||||
alignment: widget.style(widget.configuration.isEnabled, _isFocused).textAlignVertical.toAlignment(),
|
||||
child: TextFormField(
|
||||
//s1 -- Functionality
|
||||
key: widget.key,
|
||||
controller: _textController,
|
||||
focusNode: _focusNode,
|
||||
textInputAction: widget.configuration.inputAction,
|
||||
|
||||
Reference in New Issue
Block a user