|
|
|
@ -65,10 +65,7 @@ class _InputWidgetState extends State<InputWidget> {
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
color: widget.isBackgroundEnable ? Color(0xffF7F7F7) : Colors.white,
|
|
|
|
color: widget.isBackgroundEnable ? Color(0xffF7F7F7) : Colors.white,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(color: widget.isEnableBorder ? Color(0xffefefef) : Colors.transparent, width: 1),
|
|
|
|
color: widget.isEnableBorder ? Color(0xffefefef) : Colors.transparent,
|
|
|
|
|
|
|
|
width: 1,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: widget.hasSelection ? () {} : null,
|
|
|
|
onTap: widget.hasSelection ? () {} : null,
|
|
|
|
@ -79,15 +76,7 @@ class _InputWidgetState extends State<InputWidget> {
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(widget.labelText, style: const TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.44)),
|
|
|
|
widget.labelText,
|
|
|
|
|
|
|
|
style: const TextStyle(
|
|
|
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
|
|
|
letterSpacing: -0.44,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
TextField(
|
|
|
|
TextField(
|
|
|
|
enabled: widget.isEnable,
|
|
|
|
enabled: widget.isEnable,
|
|
|
|
scrollPadding: EdgeInsets.zero,
|
|
|
|
scrollPadding: EdgeInsets.zero,
|
|
|
|
@ -97,23 +86,11 @@ class _InputWidgetState extends State<InputWidget> {
|
|
|
|
obscuringCharacter: "*",
|
|
|
|
obscuringCharacter: "*",
|
|
|
|
obscureText: isObscureText,
|
|
|
|
obscureText: isObscureText,
|
|
|
|
onChanged: widget.onChange,
|
|
|
|
onChanged: widget.onChange,
|
|
|
|
style: const TextStyle(
|
|
|
|
style: const TextStyle(fontSize: 14, height: 21 / 14, fontWeight: FontWeight.w400, color: Color(0xff2B353E), letterSpacing: -0.44),
|
|
|
|
fontSize: 14,
|
|
|
|
|
|
|
|
height: 21 / 14,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
|
|
|
letterSpacing: -0.44,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
isDense: true,
|
|
|
|
isDense: true,
|
|
|
|
hintText: widget.hintText,
|
|
|
|
hintText: widget.hintText,
|
|
|
|
hintStyle: const TextStyle(
|
|
|
|
hintStyle: const TextStyle(fontSize: 14, height: 21 / 14, fontWeight: FontWeight.w400, color: Color(0xff575757), letterSpacing: -0.56),
|
|
|
|
fontSize: 14,
|
|
|
|
|
|
|
|
height: 21 / 14,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
color: Color(0xff575757),
|
|
|
|
|
|
|
|
letterSpacing: -0.56,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
suffixIconConstraints: const BoxConstraints(minWidth: 50),
|
|
|
|
suffixIconConstraints: const BoxConstraints(minWidth: 50),
|
|
|
|
suffixIcon: widget.suffixTap == null ? null : IconButton(icon: const Icon(Icons.mic, color: MyColors.darkTextColor), onPressed: widget.suffixTap),
|
|
|
|
suffixIcon: widget.suffixTap == null ? null : IconButton(icon: const Icon(Icons.mic, color: MyColors.darkTextColor), onPressed: widget.suffixTap),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
@ -131,7 +108,7 @@ class _InputWidgetState extends State<InputWidget> {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
isObscureText = !isObscureText;
|
|
|
|
isObscureText = !isObscureText;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
if (widget.hasSelection) Icon(Icons.keyboard_arrow_down_outlined),
|
|
|
|
if (widget.hasSelection) Icon(Icons.keyboard_arrow_down_outlined),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|