changes in user management

feature_dev_priya
Pratibha Chaudhary 2025-02-04 10:54:22 +05:30
parent 484ede191d
commit 3b2e19d531
2 changed files with 35 additions and 34 deletions

View File

@ -28,40 +28,40 @@ class AddInternalUser extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Obx(
() => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomDropdown<String>(
items: ['Item 1', 'Item 2', 'Item 3'],
itemLabel: (item) => item,
onSelected: (selected) {
if (selected != null) {
controller.selectedItem.value = selected;
}
},
hintText: 'Select an item',
),
controller.showE.value == true &&
controller.selectedItem.value == ''
? Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
const SizedBox(
height: 4,
),
Text(
'Please Select an option',
style: TextStyle(
color: Colors.red, fontSize: 10),
),
],
)
: Text(''),
],
),
),
// Obx(
// () => Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// CustomDropdown<String>(
// items: ['Item 1', 'Item 2', 'Item 3'],
// itemLabel: (item) => item,
// onSelected: (selected) {
// if (selected != null) {
// controller.selectedItem.value = selected;
// }
// },
// hintText: 'Select an item',
// ),
// controller.showE.value == true &&
// controller.selectedItem.value == ''
// ? Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.start,
// children: [
// const SizedBox(
// height: 4,
// ),
// Text(
// 'Please Select an option',
// style: TextStyle(
// color: Colors.red, fontSize: 10),
// ),
// ],
// )
// : Text(''),
// ],
// ),
// ),
Row(
children: [
Expanded(

View File

@ -210,6 +210,7 @@ class ManageUser extends StatelessWidget {
textStyle: 14.txtSBoldWhite,
clickAction: () {
controller.isSelected.value = false;
controller.getManageUser();
controller.getAllUser();
},
),