|
@@ -19,6 +19,7 @@ class RoundedInputField extends StatefulWidget {
|
|
final TextStyle style;
|
|
final TextStyle style;
|
|
final ValueChanged<String>? onChanged;
|
|
final ValueChanged<String>? onChanged;
|
|
final Function(String)? onEditingComplete;
|
|
final Function(String)? onEditingComplete;
|
|
|
|
+ final Function()? onTap;
|
|
final String? initialValue;
|
|
final String? initialValue;
|
|
final EdgeInsets margin;
|
|
final EdgeInsets margin;
|
|
final EdgeInsets padding;
|
|
final EdgeInsets padding;
|
|
@@ -39,6 +40,7 @@ class RoundedInputField extends StatefulWidget {
|
|
this.obscureHideIcon,
|
|
this.obscureHideIcon,
|
|
this.onChanged,
|
|
this.onChanged,
|
|
this.onEditingComplete,
|
|
this.onEditingComplete,
|
|
|
|
+ this.onTap,
|
|
this.normalBorderColor = Colors.transparent,
|
|
this.normalBorderColor = Colors.transparent,
|
|
this.errorBorderColor = Colors.transparent,
|
|
this.errorBorderColor = Colors.transparent,
|
|
this.focusBorderColor,
|
|
this.focusBorderColor,
|
|
@@ -109,6 +111,11 @@ class _RoundedInputFieldState extends State<RoundedInputField> {
|
|
widget.onEditingComplete!(inputText);
|
|
widget.onEditingComplete!(inputText);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onTap: () {
|
|
|
|
+ if (widget.onTap != null) {
|
|
|
|
+ widget.onTap!();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
cursorColor: widget.cursorColor,
|
|
cursorColor: widget.cursorColor,
|
|
obscureText: obscuteText,
|
|
obscureText: obscuteText,
|
|
style: widget.style,
|
|
style: widget.style,
|