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