|
|
|
@ -32,19 +32,19 @@ class WorkListScreen extends StatefulWidget {
|
|
|
|
class _WorkListScreenState extends State<WorkListScreen> {
|
|
|
|
class _WorkListScreenState extends State<WorkListScreen> {
|
|
|
|
List<WorkListItemTypeModelData> workListItemTypes = [
|
|
|
|
List<WorkListItemTypeModelData> workListItemTypes = [
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'HR', fullName: 'Human Resource', active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'HRSSA', disable: false),
|
|
|
|
value: 0, name: 'HR', fullName: LocaleKeys.humanResource.tr(), active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'HRSSA', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'MO', fullName: 'Move Order', active: false, color: [Color(0xff58DCFA), Color(0xff3CB9D5)], icon: "assets/images/miss_swipe.svg", key: 'INVMOA', disable: false),
|
|
|
|
value: 0, name: 'MO', fullName: LocaleKeys.moveOrder.tr(), active: false, color: [Color(0xff58DCFA), Color(0xff3CB9D5)], icon: "assets/images/miss_swipe.svg", key: 'INVMOA', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'PR', fullName: 'Purchase Requisition', active: false, color: [Color(0xff48EACF), Color(0xff3DCAB3)], icon: "assets/images/miss_swipe.svg", key: 'REQAPPRV', disable: false),
|
|
|
|
value: 0, name: 'PR', fullName: LocaleKeys.purchaseRequisition.tr(), active: false, color: [Color(0xff48EACF), Color(0xff3DCAB3)], icon: "assets/images/miss_swipe.svg", key: 'REQAPPRV', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'PO', fullName: 'Purchase Order', active: false, color: [Color(0xff5099E3), Color(0xff3670AA)], icon: "assets/images/miss_swipe.svg", key: 'POAPPRV', disable: false),
|
|
|
|
value: 0, name: 'PO', fullName: LocaleKeys.purchaseOrder.tr(), active: false, color: [Color(0xff5099E3), Color(0xff3670AA)], icon: "assets/images/miss_swipe.svg", key: 'POAPPRV', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'ITG', fullName: 'ITG Forms', active: false, color: [Color(0xffEB8C90), Color(0xffDE6C70)], icon: "assets/images/miss_swipe.svg", key: 'ITG', disable: false),
|
|
|
|
value: 0, name: 'ITG', fullName: LocaleKeys.ITGForms.tr(), active: false, color: [Color(0xffEB8C90), Color(0xffDE6C70)], icon: "assets/images/miss_swipe.svg", key: 'ITG', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'IC', fullName: 'Item Creation', active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'INVITEM', disable: false),
|
|
|
|
value: 0, name: 'IC', fullName: LocaleKeys.itemCreation.tr(), active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'INVITEM', disable: false),
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
WorkListItemTypeModelData(
|
|
|
|
value: 0, name: 'STAMP', fullName: 'Stamp', active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'STAMP', disable: false),
|
|
|
|
value: 0, name: 'STAMP', fullName: LocaleKeys.stamp.tr(), active: false, color: [Color(0xff32D892), Color(0xff1AB170)], icon: "assets/images/miss_swipe.svg", key: 'STAMP', disable: false),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
int workListItemIndex = 0;
|
|
|
|
int workListItemIndex = 0;
|
|
|
|
@ -207,7 +207,7 @@ class _WorkListScreenState extends State<WorkListScreen> {
|
|
|
|
: Expanded(
|
|
|
|
: Expanded(
|
|
|
|
child: workList != null
|
|
|
|
child: workList != null
|
|
|
|
? ((workList!).isEmpty
|
|
|
|
? ((workList!).isEmpty
|
|
|
|
? "No History Available".toText16().center
|
|
|
|
? LocaleKeys.noHistoryAvailable.tr().toText16().center
|
|
|
|
: ListView.separated(
|
|
|
|
: ListView.separated(
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|