|
@@ -22,6 +22,7 @@ class SelectOptionTextField extends StatelessWidget {
|
|
|
|
|
|
final Function(String) onNewTag;
|
|
final Function(String) onNewTag;
|
|
final Function(String) newText;
|
|
final Function(String) newText;
|
|
|
|
+ final VoidCallback? onClick;
|
|
|
|
|
|
SelectOptionTextField({
|
|
SelectOptionTextField({
|
|
required this.options,
|
|
required this.options,
|
|
@@ -30,6 +31,7 @@ class SelectOptionTextField extends StatelessWidget {
|
|
required this.tagController,
|
|
required this.tagController,
|
|
required this.onNewTag,
|
|
required this.onNewTag,
|
|
required this.newText,
|
|
required this.newText,
|
|
|
|
+ this.onClick,
|
|
TextEditingController? controller,
|
|
TextEditingController? controller,
|
|
FocusNode? focusNode,
|
|
FocusNode? focusNode,
|
|
Key? key,
|
|
Key? key,
|
|
@@ -53,6 +55,7 @@ class SelectOptionTextField extends StatelessWidget {
|
|
autofocus: true,
|
|
autofocus: true,
|
|
controller: editController,
|
|
controller: editController,
|
|
focusNode: focusNode,
|
|
focusNode: focusNode,
|
|
|
|
+ onTap: onClick,
|
|
onChanged: (text) {
|
|
onChanged: (text) {
|
|
if (onChanged != null) {
|
|
if (onChanged != null) {
|
|
onChanged(text);
|
|
onChanged(text);
|