forget password changes

This commit is contained in:
mohammad
2024-08-15 13:17:35 +03:00
parent 75d5c7a4ac
commit 5cce050013
5 changed files with 259 additions and 258 deletions

View File

@ -100,7 +100,7 @@ class AccessManagementPage extends StatelessWidget {
const SizedBox( const SizedBox(
height: 20, height: 20,
), ),
Wrap( Row(
children: [ children: [
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

View File

@ -31,11 +31,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
} }
}, },
builder: (context, state) { builder: (context, state) {
if (state is AuthLoading) {
return const Center(child: CircularProgressIndicator());
} else {
return _buildForm(context, state); return _buildForm(context, state);
}
}, },
), ),
), ),
@ -62,7 +58,11 @@ class ForgetPasswordWebPage extends StatelessWidget {
Size size = MediaQuery.of(context).size; Size size = MediaQuery.of(context).size;
return FirstLayer( return FirstLayer(
second: Center( second: Center(
child: ListView( child: Stack(
children: [
if (state is AuthLoading)
const Center(child: CircularProgressIndicator()),
ListView(
shrinkWrap: true, shrinkWrap: true,
controller: _scrollController, controller: _scrollController,
children: [ children: [
@ -346,6 +346,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
), ),
], ],
), ),
],
),
)); ));
} }
} }

View File

@ -28,7 +28,6 @@ class VisitorPasswordBloc extends Bloc<VisitorPasswordEvent, VisitorPasswordStat
selectAccessType(SelectPasswordType event, Emitter<VisitorPasswordState> emit) { selectAccessType(SelectPasswordType event, Emitter<VisitorPasswordState> emit) {
accessTypeSelected=event.type; accessTypeSelected=event.type;
print(accessTypeSelected); print(accessTypeSelected);
emit(PasswordTypeSelected(event.type)); emit(PasswordTypeSelected(event.type));
} }

View File

@ -86,7 +86,7 @@ class VisitorPasswordDialog extends StatelessWidget {
SizedBox( SizedBox(
width: size.width*0.15, width: size.width*0.15,
child: RadioListTile<String>( child: RadioListTile<String>(
title: Text('Online Password'), title: const Text('Online Password'),
value: 'Online Password', value: 'Online Password',
groupValue: (state is PasswordTypeSelected) groupValue: (state is PasswordTypeSelected)
? state.selectedType ? state.selectedType

View File

@ -8,24 +8,24 @@ InputDecoration? textBoxDecoration({bool suffixIcon = false}) => InputDecoration
filled: true, // Enable background filling filled: true, // Enable background filling
fillColor: Colors.grey.shade200, // Set the background color fillColor: Colors.grey.shade200, // Set the background color
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: BorderRadius.circular(20), // Add border radius borderRadius: BorderRadius.circular(8), // Add border radius
borderSide: BorderSide.none, // Remove the underline borderSide: BorderSide.none, // Remove the underline
), ),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20), // Add border radius borderRadius: BorderRadius.circular(8), // Add border radius
borderSide: BorderSide.none, // Remove the underline borderSide: BorderSide.none, // Remove the underline
), ),
focusedBorder: OutlineInputBorder( focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20), // Add border radius borderRadius: BorderRadius.circular(8), // Add border radius
borderSide: BorderSide.none, // Remove the underline borderSide: BorderSide.none, // Remove the underline
), ),
errorBorder: OutlineInputBorder( errorBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.red, width: 2), borderSide: BorderSide(color: Colors.red, width: 2),
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(8),
), ),
focusedErrorBorder: OutlineInputBorder( focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.red, width: 2), borderSide: BorderSide(color: Colors.red, width: 2),
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(8),
), ),
); );