|
|
|
@ -44,7 +44,8 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
return Wrap(
|
|
|
|
return SafeArea(
|
|
|
|
|
|
|
|
child: Wrap(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Form(
|
|
|
|
Form(
|
|
|
|
key: _formKey,
|
|
|
|
key: _formKey,
|
|
|
|
@ -60,7 +61,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
alignment: AlignmentDirectional.centerStart,
|
|
|
|
alignment: AlignmentDirectional.centerStart,
|
|
|
|
child: "Add Engineer For Supplier".heading5(context).custom(fontWeight: FontWeight.w600).paddingOnly(top: 16, bottom: 16),
|
|
|
|
child: "Add Engineer For Supplier".heading5(context).custom(fontWeight: FontWeight.w600).paddingOnly(top: 16, bottom: 16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
12.height,
|
|
|
|
AppTextFormField(
|
|
|
|
AppTextFormField(
|
|
|
|
labelText: "Engineer Supplier Name".addTranslation,
|
|
|
|
labelText: "Engineer Supplier Name".addTranslation,
|
|
|
|
textInputType: TextInputType.name,
|
|
|
|
textInputType: TextInputType.name,
|
|
|
|
@ -71,7 +72,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
engineer.personName = text.isEmpty ? null : text;
|
|
|
|
engineer.personName = text.isEmpty ? null : text;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
12.height,
|
|
|
|
SingleItemDropDownMenu<Lookup, SupplierEngineerProvider>(
|
|
|
|
SingleItemDropDownMenu<Lookup, SupplierEngineerProvider>(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
title: "Role",
|
|
|
|
title: "Role",
|
|
|
|
@ -82,7 +83,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
12.height,
|
|
|
|
AppTextFormField(
|
|
|
|
AppTextFormField(
|
|
|
|
labelText: "Contact".addTranslation,
|
|
|
|
labelText: "Contact".addTranslation,
|
|
|
|
textInputType: TextInputType.name,
|
|
|
|
textInputType: TextInputType.name,
|
|
|
|
@ -93,7 +94,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
engineer.contact = text.isEmpty ? null : text;
|
|
|
|
engineer.contact = text.isEmpty ? null : text;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
12.height,
|
|
|
|
AppTextFormField(
|
|
|
|
AppTextFormField(
|
|
|
|
labelText: "Email".addTranslation,
|
|
|
|
labelText: "Email".addTranslation,
|
|
|
|
textInputType: TextInputType.emailAddress,
|
|
|
|
textInputType: TextInputType.emailAddress,
|
|
|
|
@ -104,8 +105,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
engineer.email = text.isEmpty ? null : text;
|
|
|
|
engineer.email = text.isEmpty ? null : text;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
24.height,
|
|
|
|
16.height,
|
|
|
|
|
|
|
|
Consumer<ServiceRequestsProvider>(
|
|
|
|
Consumer<ServiceRequestsProvider>(
|
|
|
|
builder: (context, snapshot, _) => AppFilledButton(
|
|
|
|
builder: (context, snapshot, _) => AppFilledButton(
|
|
|
|
label: context.translation.save,
|
|
|
|
label: context.translation.save,
|
|
|
|
@ -136,6 +136,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|