text form fixed

This commit is contained in:
Rajshinde046
2024-06-07 18:00:42 +05:30
parent e5084d8b65
commit bd7676e487
9 changed files with 21 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ class CustomTextFormField extends StatefulWidget {
this.onTap, this.onTap,
this.textCapV, this.textCapV,
this.suffixIcon, this.suffixIcon,
this.autofocus, required this.autofocus,
}) : super(key: key); }) : super(key: key);
final dynamic validator; final dynamic validator;

View File

@@ -210,7 +210,7 @@ class _HomeScreenState extends State<HomeScreen> {
.nSEINDEXNifty50!.lastPrice!, .nSEINDEXNifty50!.lastPrice!,
), ),
), ),
sizedBoxWidth(10.w), sizedBoxWidth(8.w),
commoncontainer( commoncontainer(
width: 250.w, width: 250.w,
text: homeModel text: homeModel
@@ -807,16 +807,16 @@ Widget commoncontainer({
), ),
), ),
child: Padding( child: Padding(
padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 6.w), padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 5.w),
child: Column( child: Column(
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
text14W400_979797(text), text14W400_979797(text),
sizedBoxWidth(7.w), sizedBoxWidth(5.w),
text16W600(amount), text16W600(amount),
sizedBoxWidth(7.w), sizedBoxWidth(5.w),
rate.contains("-") rate.contains("-")
? SvgPicture.asset( ? SvgPicture.asset(
'assets/images/svg/Line 587.svg', 'assets/images/svg/Line 587.svg',

View File

@@ -222,7 +222,7 @@ class _VideosMoreState extends State<AudioMore> {
children: [ children: [
SizedBox( SizedBox(
width: 295.w, width: 295.w,
child: CustomTextFormField( child: CustomTextFormField( autofocus: false,
textEditingController: searchController, textEditingController: searchController,
onInput: (value) { onInput: (value) {
// Call method to handle search // Call method to handle search

View File

@@ -88,7 +88,7 @@ class _VideosMoreState extends State<ReadMore> {
children: [ children: [
SizedBox( SizedBox(
width: 295.w, width: 295.w,
child: CustomTextFormField( child: CustomTextFormField( autofocus: false,
textEditingController: searchController, textEditingController: searchController,
onInput: (value) { onInput: (value) {
// Call method to handle search // Call method to handle search

View File

@@ -84,7 +84,7 @@ class _VideosMoreState extends State<VideosMore> {
children: [ children: [
SizedBox( SizedBox(
width: 295.w, width: 295.w,
child: CustomTextFormField( child: CustomTextFormField( autofocus: false,
textEditingController: searchController, textEditingController: searchController,
onInput: (value) { onInput: (value) {
// Call method to handle search // Call method to handle search

View File

@@ -325,6 +325,7 @@ class _MyProfileScreenState extends State<MyProfileScreen> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: fullNameController, textEditingController: fullNameController,
enabled: isEdit.value, enabled: isEdit.value,
validator: (value) { validator: (value) {
@@ -345,6 +346,7 @@ class _MyProfileScreenState extends State<MyProfileScreen> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: emailController, textEditingController: emailController,
enabled: isEdit.value, enabled: isEdit.value,
texttype: TextInputType.emailAddress, texttype: TextInputType.emailAddress,
@@ -361,6 +363,7 @@ class _MyProfileScreenState extends State<MyProfileScreen> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: phoneNoController, textEditingController: phoneNoController,
enabled: isEdit.value, enabled: isEdit.value,
texttype: TextInputType.phone, texttype: TextInputType.phone,
@@ -377,6 +380,7 @@ class _MyProfileScreenState extends State<MyProfileScreen> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: dobController, textEditingController: dobController,
enabled: isEdit.value, enabled: isEdit.value,
suffixIcon: const Icon( suffixIcon: const Icon(
@@ -400,6 +404,7 @@ class _MyProfileScreenState extends State<MyProfileScreen> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: cityController, textEditingController: cityController,
enabled: isEdit.value, enabled: isEdit.value,
), ),

View File

@@ -149,6 +149,7 @@ class _AddDetailsState extends State<AddDetails> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: fullName, textEditingController: fullName,
), ),
SizedBox( SizedBox(
@@ -163,6 +164,7 @@ class _AddDetailsState extends State<AddDetails> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: email, textEditingController: email,
texttype: TextInputType.emailAddress, texttype: TextInputType.emailAddress,
), ),
@@ -178,6 +180,7 @@ class _AddDetailsState extends State<AddDetails> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: phone, textEditingController: phone,
texttype: TextInputType.phone, texttype: TextInputType.phone,
), ),
@@ -193,6 +196,7 @@ class _AddDetailsState extends State<AddDetails> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: dobcontroller, textEditingController: dobcontroller,
suffixIcon: Icon( suffixIcon: Icon(
Icons.calendar_month_outlined, Icons.calendar_month_outlined,
@@ -215,6 +219,7 @@ class _AddDetailsState extends State<AddDetails> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
textEditingController: city, textEditingController: city,
), ),
SizedBox( SizedBox(

View File

@@ -436,6 +436,7 @@ class _KycState extends State<Kyc> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
enabled: enabled:
fromScreen == "sidemenu-flow" ? false : true, fromScreen == "sidemenu-flow" ? false : true,
textCapV: TextCapitalization.characters, textCapV: TextCapitalization.characters,
@@ -458,6 +459,7 @@ class _KycState extends State<Kyc> {
height: 15.h, height: 15.h,
), ),
CustomTextFormField( CustomTextFormField(
autofocus: false,
enabled: enabled:
fromScreen == "sidemenu-flow" ? false : true, fromScreen == "sidemenu-flow" ? false : true,
textEditingController: aadhaarnumber, textEditingController: aadhaarnumber,

View File

@@ -185,6 +185,7 @@ class _LoginScreenState extends State<LoginScreen> {
SizedBox( SizedBox(
width: 285.w, width: 285.w,
child: CustomTextFormField( child: CustomTextFormField(
autofocus: false,
texttype: TextInputType.phone, texttype: TextInputType.phone,
textEditingController: phonecontroller, textEditingController: phonecontroller,
// validator: (value) { // validator: (value) {