Updates & fixes

merge-requests/1/merge
haroon amjad 3 years ago
parent a05d037211
commit 50f203cd55

@ -22,11 +22,10 @@ class EmployeePostedAds {
String? status; String? status;
List<ItemAttachments>? itemAttachments; List<ItemAttachments>? itemAttachments;
String? created; String? created;
dynamic? comments; bool? isActive;
dynamic? isActive;
int? pageSize; int? pageSize;
int? pageNo; int? pageNo;
dynamic? languageId; int? languageId;
EmployeePostedAds( EmployeePostedAds(
{this.itemSaleID, {this.itemSaleID,
@ -52,7 +51,6 @@ class EmployeePostedAds {
this.status, this.status,
this.itemAttachments, this.itemAttachments,
this.created, this.created,
this.comments,
this.isActive, this.isActive,
this.pageSize, this.pageSize,
this.pageNo, this.pageNo,
@ -87,7 +85,6 @@ class EmployeePostedAds {
}); });
} }
created = json['created']; created = json['created'];
comments = json['comments'];
isActive = json['isActive']; isActive = json['isActive'];
pageSize = json['pageSize']; pageSize = json['pageSize'];
pageNo = json['pageNo']; pageNo = json['pageNo'];
@ -122,7 +119,6 @@ class EmployeePostedAds {
this.itemAttachments!.map((v) => v.toJson()).toList(); this.itemAttachments!.map((v) => v.toJson()).toList();
} }
data['created'] = this.created; data['created'] = this.created;
data['comments'] = this.comments;
data['isActive'] = this.isActive; data['isActive'] = this.isActive;
data['pageSize'] = this.pageSize; data['pageSize'] = this.pageSize;
data['pageNo'] = this.pageNo; data['pageNo'] = this.pageNo;
@ -137,7 +133,7 @@ class ItemAttachments {
String? contentType; String? contentType;
String? attachFileStream; String? attachFileStream;
String? base64String; String? base64String;
dynamic? isActive; bool? isActive;
int? referenceItemId; int? referenceItemId;
String? content; String? content;
String? filePath; String? filePath;

@ -13,7 +13,6 @@ class GetCCPDFFStructureModel {
String? dISPLAYFLAG; String? dISPLAYFLAG;
String? eNABLEDFLAG; String? eNABLEDFLAG;
ESERVICESDV? eSERVICESDV; ESERVICESDV? eSERVICESDV;
// List<Null>? eSERVICESVS;
String? fLEXVALUESETNAME; String? fLEXVALUESETNAME;
String? fORMATTYPE; String? fORMATTYPE;
String? fORMATTYPEDSP; String? fORMATTYPEDSP;
@ -95,12 +94,6 @@ class GetCCPDFFStructureModel {
eSERVICESDV = json['E_SERVICES_DV'] != null eSERVICESDV = json['E_SERVICES_DV'] != null
? new ESERVICESDV.fromJson(json['E_SERVICES_DV']) ? new ESERVICESDV.fromJson(json['E_SERVICES_DV'])
: null; : null;
// if (json['E_SERVICES_VS'] != null) {
// eSERVICESVS = <Null>[];
// json['E_SERVICES_VS'].forEach((v) {
// eSERVICESVS!.add(new Null.fromJson(v));
// });
// }
fLEXVALUESETNAME = json['FLEX_VALUE_SET_NAME']; fLEXVALUESETNAME = json['FLEX_VALUE_SET_NAME'];
fORMATTYPE = json['FORMAT_TYPE']; fORMATTYPE = json['FORMAT_TYPE'];
fORMATTYPEDSP = json['FORMAT_TYPE_DSP']; fORMATTYPEDSP = json['FORMAT_TYPE_DSP'];
@ -112,19 +105,6 @@ class GetCCPDFFStructureModel {
nUMBERPRECISION = json['NUMBER_PRECISION']; nUMBERPRECISION = json['NUMBER_PRECISION'];
nUMERICMODEENABLEDFLAG = json['NUMERIC_MODE_ENABLED_FLAG']; nUMERICMODEENABLEDFLAG = json['NUMERIC_MODE_ENABLED_FLAG'];
pARENTSEGMENTSDV = json['PARENT_SEGMENTS_DV']; pARENTSEGMENTSDV = json['PARENT_SEGMENTS_DV'];
// if (json['PARENT_SEGMENTS_DV_Splited'] != null) {
// pARENTSEGMENTSDVSplited = <Null>[];
// json['PARENT_SEGMENTS_DV_Splited'].forEach((v) {
// pARENTSEGMENTSDVSplited!.add(new Null.fromJson(v));
// });
// }
// pARENTSEGMENTSVS = json['PARENT_SEGMENTS_VS'];
// if (json['PARENT_SEGMENTS_VS_SplitedVS'] != null) {
// pARENTSEGMENTSVSSplitedVS = <Null>[];
// json['PARENT_SEGMENTS_VS_SplitedVS'].forEach((v) {
// pARENTSEGMENTSVSSplitedVS!.add(new Null.fromJson(v));
// });
// }
rEADONLY = json['READ_ONLY']; rEADONLY = json['READ_ONLY'];
rEQUIREDFLAG = json['REQUIRED_FLAG']; rEQUIREDFLAG = json['REQUIRED_FLAG'];
sEGMENTNAME = json['SEGMENT_NAME']; sEGMENTNAME = json['SEGMENT_NAME'];

@ -29,9 +29,11 @@ class _ItemForSaleDetailPageState extends State<ItemForSaleDetailPage> {
appBar: AppBarWidget(context, appBar: AppBarWidget(context,
// title: LocaleKeys.mowadhafhiRequest.tr(), // title: LocaleKeys.mowadhafhiRequest.tr(),
title: "Items for sale", title: "Items for sale",
showHomeButton: true), showHomeButton: true,),
body: SingleChildScrollView( body: SingleChildScrollView(
child: AspectRatio( child: Column(
children: [
AspectRatio(
aspectRatio: 336 / 554, aspectRatio: 336 / 554,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@ -100,8 +102,7 @@ class _ItemForSaleDetailPageState extends State<ItemForSaleDetailPage> {
), ),
).paddingAll(21), ).paddingAll(21),
), ),
), Container(
bottomSheet: Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: MyColors.white, color: MyColors.white,
boxShadow: [ boxShadow: [
@ -131,6 +132,9 @@ class _ItemForSaleDetailPageState extends State<ItemForSaleDetailPage> {
], ],
), ),
), ),
],
),
),
); );
} }
} }

@ -13,7 +13,6 @@ import 'package:mohem_flutter_app/extensions/int_extensions.dart';
import 'package:mohem_flutter_app/extensions/string_extensions.dart'; import 'package:mohem_flutter_app/extensions/string_extensions.dart';
import 'package:mohem_flutter_app/extensions/widget_extensions.dart'; import 'package:mohem_flutter_app/extensions/widget_extensions.dart';
import 'package:mohem_flutter_app/generated/locale_keys.g.dart'; import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
import 'package:mohem_flutter_app/models/get_eit_dff_structure_list_model.dart';
import 'package:mohem_flutter_app/models/my_requests/get_ccp_output_model.dart'; import 'package:mohem_flutter_app/models/my_requests/get_ccp_output_model.dart';
import 'package:mohem_flutter_app/models/my_requests/get_ccp_transactions_model.dart'; import 'package:mohem_flutter_app/models/my_requests/get_ccp_transactions_model.dart';
import 'package:mohem_flutter_app/models/my_requests/get_concurrent_programs_model.dart'; import 'package:mohem_flutter_app/models/my_requests/get_concurrent_programs_model.dart';
@ -151,11 +150,8 @@ class _MyRequestsState extends State<MyRequests> {
}, },
separatorBuilder: (BuildContext context, int index) => 12.height, separatorBuilder: (BuildContext context, int index) => 12.height,
itemCount: getCCPTransactionsList.length ?? 0)), itemCount: getCCPTransactionsList.length ?? 0)),
80.height 80.height,
], Container(
),
),
bottomSheet: Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: MyColors.white, color: MyColors.white,
boxShadow: [ boxShadow: [
@ -165,7 +161,11 @@ class _MyRequestsState extends State<MyRequests> {
child: DefaultButton(LocaleKeys.createRequest.tr(), () async { child: DefaultButton(LocaleKeys.createRequest.tr(), () async {
openNewRequest(); openNewRequest();
}).insideContainer, }).insideContainer,
)); )
],
),
),
);
} }
void openNewRequest() async { void openNewRequest() async {

@ -78,11 +78,8 @@ class _NewRequestState extends State<NewRequest> {
itemBuilder: (cxt, int parentIndex) => parseDynamicFormatType(getCCPDFFStructureModelList[parentIndex], parentIndex), itemBuilder: (cxt, int parentIndex) => parseDynamicFormatType(getCCPDFFStructureModelList[parentIndex], parentIndex),
separatorBuilder: (cxt, index) => 0.height, separatorBuilder: (cxt, index) => 0.height,
itemCount: getCCPDFFStructureModelList.length)) itemCount: getCCPDFFStructureModelList.length))
.expanded .expanded,
], Container(
),
),
bottomSheet: Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: MyColors.white, color: MyColors.white,
boxShadow: [ boxShadow: [
@ -91,8 +88,13 @@ class _NewRequestState extends State<NewRequest> {
), ),
child: DefaultButton(LocaleKeys.submit.tr(), () async { child: DefaultButton(LocaleKeys.submit.tr(), () async {
// openNewRequest(); // openNewRequest();
}).insideContainer, })
.insideContainer,
) )
],
),
),
// bottomSheet:
); );
} }
@ -412,8 +414,7 @@ class _NewRequestState extends State<NewRequest> {
), ),
); );
} else { } else {
DateTime? picked = DateTime? picked = await showDatePicker(context: context, initialDate: selectedDate, initialEntryMode: DatePickerEntryMode.calendarOnly, firstDate: DateTime(2015, 8), lastDate: DateTime(2101));
await showDatePicker(context: context, initialDate: selectedDate, initialEntryMode: DatePickerEntryMode.calendarOnly, firstDate: DateTime(2015, 8), lastDate: DateTime(2101));
if (picked != null && picked != selectedDate) { if (picked != null && picked != selectedDate) {
time = picked; time = picked;
} }

@ -167,26 +167,7 @@ class _OffersAndDiscountsDetailsState extends State<OffersAndDiscountsDetails> {
} }
Widget getItemCard(OffersListModel getOffersList) { Widget getItemCard(OffersListModel getOffersList) {
return InkWell( return Column(
onTap: () {
this.getOffersList[0] = getOffersList;
_scrollToTop();
setState(() {});
},
child: Container(
padding: const EdgeInsets.all(10.0),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: const Color(0xff000000).withOpacity(.05),
blurRadius: 26,
offset: const Offset(0, -3),
),
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@ -215,15 +196,17 @@ class _OffersAndDiscountsDetailsState extends State<OffersAndDiscountsDetails> {
getOffersList.description!.toText12(maxLine: 2, color: const Color(0xff535353)), getOffersList.description!.toText12(maxLine: 2, color: const Color(0xff535353)),
16.height, 16.height,
getOffersList.discount!.toText14(isBold: true, maxlines: 1), getOffersList.discount!.toText14(isBold: true, maxlines: 1),
10.height, 8.height,
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [checkDate(getOffersList.endDate!), SvgPicture.asset("assets/images/arrow_next.svg").paddingOnly(bottom: 4)], children: [checkDate(getOffersList.endDate!), SvgPicture.asset("assets/images/arrow_next.svg").paddingOnly(bottom: 4)],
), ),
], ],
), ).objectContainerView().onPress(() {
), this.getOffersList[0] = getOffersList;
); _scrollToTop();
setState(() {});
});
} }
void getOfferLocation() {} void getOfferLocation() {}

Loading…
Cancel
Save