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), const SizedBox(height: 10),
Text( Text(
'Please fill in your account information to\nretrieve your password', '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), const SizedBox(height: 10),
Column( Column(
@ -126,8 +126,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [ children: [
Text( Text(
"Country/Region", "Country/Region",
style: style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
Theme.of(context).textTheme.bodySmall,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
SizedBox( SizedBox(
@ -140,7 +140,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
hintText: null, hintText: null,
), ),
hint: SizedBox( hint: SizedBox(
width: size.width * 0.11, width: size.width * 0.12,
child: const Align( child: const Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
@ -157,7 +157,10 @@ class ForgetPasswordWebPage extends StatelessWidget {
.map((RegionModel region) { .map((RegionModel region) {
return DropdownMenuItem<String>( return DropdownMenuItem<String>(
value: region.id, value: region.id,
child: Text(region.name), child: SizedBox(
width: size.width*0.06,
child: Text(region.name)),
); );
}).toList(), }).toList(),
onChanged: (String? value) { onChanged: (String? value) {
@ -176,8 +179,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [ children: [
Text( Text(
"Account", "Account",
style: style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
Theme.of(context).textTheme.bodySmall,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
SizedBox( SizedBox(
@ -200,8 +203,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [ children: [
Text( Text(
"One Time Password", "One Time Password",
style: style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
Theme.of(context).textTheme.bodySmall,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
SizedBox( SizedBox(
@ -247,8 +250,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
children: [ children: [
Text( Text(
"Password", "Password",
style: style: Theme.of(context).textTheme.bodySmall!.copyWith(fontSize: 14,fontWeight: FontWeight.w400),
Theme.of(context).textTheme.bodySmall,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
SizedBox( 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: () { onPressed: () {
if(loginBloc.loginFormKey.currentState!.validate() ){ if(loginBloc.loginFormKey.currentState!.validate() ){
loginBloc.add(LoginButtonPressed( loginBloc.add(LoginButtonPressed(
regionUuid:loginBloc.regionUuid, regionUuid:loginBloc.regionUuid,
@ -364,7 +363,6 @@ class _LoginWebPageState extends State<LoginWebPage> {
}else{ }else{
loginBloc.add(ChangeValidateEvent()); loginBloc.add(ChangeValidateEvent());
} }
}, },
), ),
), ),