login changes

This commit is contained in:
mohammad
2024-08-15 10:04:11 +03:00
parent de46bc9872
commit f4cb117464
2 changed files with 17 additions and 14 deletions

View File

@ -117,7 +117,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
const SizedBox(height: 10),
Text(
'Please fill in your account information to\nretrieve your password',
style: Theme.of(context).textTheme.bodySmall,
style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
),
const SizedBox(height: 10),
Column(
@ -126,8 +126,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [
Text(
"Country/Region",
style:
Theme.of(context).textTheme.bodySmall,
style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
),
const SizedBox(height: 10),
SizedBox(
@ -140,7 +140,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
hintText: null,
),
hint: SizedBox(
width: size.width * 0.11,
width: size.width * 0.12,
child: const Align(
alignment: Alignment.centerLeft,
child: Text(
@ -157,7 +157,10 @@ class ForgetPasswordWebPage extends StatelessWidget {
.map((RegionModel region) {
return DropdownMenuItem<String>(
value: region.id,
child: Text(region.name),
child: SizedBox(
width: size.width*0.06,
child: Text(region.name)),
);
}).toList(),
onChanged: (String? value) {
@ -176,8 +179,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [
Text(
"Account",
style:
Theme.of(context).textTheme.bodySmall,
style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
),
const SizedBox(height: 10),
SizedBox(
@ -200,8 +203,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [
Text(
"One Time Password",
style:
Theme.of(context).textTheme.bodySmall,
style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
),
const SizedBox(height: 10),
SizedBox(
@ -247,8 +250,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [
Text(
"Password",
style:
Theme.of(context).textTheme.bodySmall,
style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
),
const SizedBox(height: 10),
SizedBox(
@ -324,7 +327,9 @@ class ForgetPasswordWebPage extends StatelessWidget {
),
],
),
)
),
const SizedBox(height: 15.0),
],
),
),

View File

@ -354,7 +354,6 @@ class _LoginWebPageState extends State<LoginWebPage> {
)
),
onPressed: () {
if(loginBloc.loginFormKey.currentState!.validate() ){
loginBloc.add(LoginButtonPressed(
regionUuid:loginBloc.regionUuid,
@ -364,7 +363,6 @@ class _LoginWebPageState extends State<LoginWebPage> {
}else{
loginBloc.add(ChangeValidateEvent());
}
},
),
),