loan improvements.

design_3.0_loan_module
Sikander Saleem 3 hours ago
parent 07ec866315
commit 8e29c84c70

@ -115,7 +115,7 @@ extension WidgetExtensions on Widget {
bool withShadow = true,
Color? backgroundColor,
Color borderColor = Colors.transparent,
double padding = 16,
double padding = 12,
EdgeInsets? paddingObject,
EdgeInsets? margin,
}) =>

@ -145,6 +145,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle,
hintStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.text,
textInputAction: TextInputAction.next,
showShadow: false,
onSaved: (value) {
_loanFormModel.docName = value;
@ -160,6 +161,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle,
hintStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.phone,
textInputAction: TextInputAction.next,
showShadow: false,
onSaved: (value) {
_loanFormModel.docNumber = value;
@ -175,6 +177,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle,
hintStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.emailAddress,
textInputAction: TextInputAction.next,
showShadow: false,
onSaved: (value) {
_loanFormModel.docEmail = value;
@ -295,6 +298,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
floatingLabelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.text,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.itemDescription = value;
},
@ -323,6 +327,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
floatingLabelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.text,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.requestDescription = value;
},
@ -340,6 +345,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
floatingLabelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.text,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.model = value;
},
@ -357,6 +363,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
floatingLabelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.text,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.manufacturer = value;
},
@ -401,6 +408,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.name,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.vendorName = value;
},
@ -418,6 +426,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.name,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.vendorRepresentativeName = value;
},
@ -435,6 +444,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.phone,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.vendorNumber = value;
},
@ -455,6 +465,7 @@ class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with Tick
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.emailAddress,
textInputAction: TextInputAction.next,
onChange: (value) {
_loanFormModel.vendorEmail = value;
},

@ -86,11 +86,10 @@ class LoanEquipmentDetailPage extends StatelessWidget {
"Attachments".addTranslation,
style: AppTextStyles.heading4.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
),
8.height,
FilesList(images: allAttachments.map((e) => URLs.getFileUrl(e.attachmentName ?? '') ?? '').toList() ?? []),
],
],
).toShadowContainer(context),
).toShadowContainer(context, padding: 12),
],
);
}),
@ -100,7 +99,6 @@ class LoanEquipmentDetailPage extends StatelessWidget {
List<Widget> requestDetails(BuildContext context, LoanRequestModel loanData) {
return [
Text("Request Details", style: AppTextStyles.heading4.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50)),
6.height,
'Loan Type: ${loanData.loanTypeName ?? "-"}'.bodyText(context),
'Loan No: ${loanData.reqCode ?? "-"}'.bodyText(context),
'Loan Period: ${loanData.loanPeriodName ?? "-"}'.bodyText(context),

Loading…
Cancel
Save