|
|
|
|
@ -118,7 +118,7 @@ class TextInputWidget extends StatelessWidget {
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: isAllowRadius ? 12 : null,
|
|
|
|
|
borderRadius: isAllowRadius ? 20.h : null,
|
|
|
|
|
side: isBorderAllowed ? BorderSide(color: hasError ? errorColor : const Color(0xffefefef), width: 1) : null,
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
@ -182,7 +182,7 @@ class TextInputWidget extends StatelessWidget {
|
|
|
|
|
margin: EdgeInsets.only(right: 10.h),
|
|
|
|
|
padding: EdgeInsets.all(8.h),
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
borderRadius: 10.h,
|
|
|
|
|
borderRadius: 12.h,
|
|
|
|
|
color: AppColors.greyColor,
|
|
|
|
|
),
|
|
|
|
|
child: Utils.buildSvgWithAssets(icon: leadingIcon!));
|
|
|
|
|
@ -257,7 +257,7 @@ class TextInputWidget extends StatelessWidget {
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
isDense: true,
|
|
|
|
|
hintText: hintText,
|
|
|
|
|
hintStyle: TextStyle(fontSize: 14.fSize, height: 21 / 16, fontWeight: FontWeight.w500, color: Color(0xff898A8D), letterSpacing: -0.75),
|
|
|
|
|
hintStyle: TextStyle(fontSize: 14.fSize, height: 21 / 16, fontWeight: FontWeight.w500, color: AppColors.textColor, letterSpacing: -0.75),
|
|
|
|
|
prefixIconConstraints: BoxConstraints(minWidth: 30.h),
|
|
|
|
|
prefixIcon: prefix == null ? null : "+${prefix!}".toText14(letterSpacing: -1, color: AppColors.textColor, weight: FontWeight.w500),
|
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
|
|