added vendor dropdown along with free text

design_3.0_loan_module
WaseemAbbasi22 2 weeks ago
parent afa165dc3d
commit 3d77a96fda

@ -439,7 +439,42 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
List<Widget> vendorDetailsSection() {
return [
'Vendor Details'.addTranslation.bodyText(context).custom(color: AppColor.black10),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
'Vendor Details'.addTranslation.bodyText(context).custom(color: AppColor.black10),
Row(
children: [
Container(
height: 24,
width: 24,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: AppColor.primary10, // or AppColor.blueStatus(context)
),
alignment: Alignment.center,
child: Icon(
!_loanFormModel.isNewVendor? Icons.add:Icons.search,
color: Colors.white,
size: 16,
),
),
4.width,
Text(
!_loanFormModel.isNewVendor ? "Add new vendor" : "Select existing vendor",
style: AppTextStyles.bodyText.copyWith(
color: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
// decoration: TextDecoration.underline,
),
),
],
).onPress(() async {
setState(() {
_loanFormModel.isNewVendor = !_loanFormModel.isNewVendor;
});
}),
],
),
8.height,
if (!_loanFormModel.isNewVendor) ...[
SingleItemDropDownMenu<SupplierDetails, VendorProvider>(

Loading…
Cancel
Save