|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/pharmacies/PointsAmountPerYear.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/lacum-viewmodel.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lacum-registration-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lacum-setting-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lacum-transfer-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lakum-points-year-page.dart';
|
|
|
|
@ -10,278 +12,230 @@ import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import 'lacum-activitaion-vida-page.dart';
|
|
|
|
|
|
|
|
|
|
class LakumMainPage extends StatelessWidget {
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final mediaQuery = MediaQuery.of(context);
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
return BaseView<LacumViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getLacumData(),
|
|
|
|
|
builder: (_, model, wi) => AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).lakum,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isPharmacy: true,
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBarIcons: _buildAppBarICons(context, model),
|
|
|
|
|
// preferredSize: mediaQuery.size.height * 0.20,
|
|
|
|
|
body: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: (model.lacumGroupInformation != null &&
|
|
|
|
|
model.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion !=
|
|
|
|
|
null)
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: mediaQuery.size.height * 0.15,
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: mediaQuery.size.height * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: mediaQuery.size.width * 1,
|
|
|
|
|
child: LakumBannerWidget(
|
|
|
|
|
model, mediaQuery, true)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
await model.getLacumData();
|
|
|
|
|
if (model.lacumInformation.yahalaAccountNo == 0 || model.lacumInformation.yahalaAccountNo == null) {
|
|
|
|
|
navigateToLakumRegister(context);
|
|
|
|
|
} else {
|
|
|
|
|
if (model.lacumInformation.status == "Hold") {
|
|
|
|
|
Navigator.pushReplacement(context, FadePage(page: LakumActivationVidaPage()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, wi) => AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).lakum,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isPharmacy: true,
|
|
|
|
|
showPharmacyCart: false,
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBarIcons: _buildAppBarICons(context, model),
|
|
|
|
|
// preferredSize: mediaQuery.size.height * 0.20,
|
|
|
|
|
body: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: (model.lacumGroupInformation != null && model.lacumGroupInformation.lakumInquiryInformationObjVersion != null)
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: mediaQuery.size.height * 0.15,
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(width: mediaQuery.size.width * 1, child: LakumBannerWidget(model, mediaQuery, true)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
LakumHomeButtons(mediaQuery, model),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LacumPointsWidget(mediaQuery, 1, TranslationBase.of(context).balance, model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsBalance, null),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
LakumHomeButtons(mediaQuery, model),
|
|
|
|
|
LacumPointsWidget(mediaQuery, 2, TranslationBase.of(context).gained, model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.gainedPoints, model.lacumGroupInformation.lakumInquiryInformationObjVersion.gainedPointsAmountPerYear),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
1,
|
|
|
|
|
TranslationBase.of(context).balance,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.pointsBalanceAmount,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.pointsBalance,
|
|
|
|
|
null),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
2,
|
|
|
|
|
TranslationBase.of(context).gained,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.pointsBalanceAmount,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.gainedPoints,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.gainedPointsAmountPerYear),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
3,
|
|
|
|
|
TranslationBase.of(context).consumed,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPointsAmount !=
|
|
|
|
|
null
|
|
|
|
|
? int.parse(model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPointsAmount)
|
|
|
|
|
: 0,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPoints,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPointsAmountPerYear),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
4,
|
|
|
|
|
TranslationBase.of(context).transferred,
|
|
|
|
|
0,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.transferPoints,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.transferPointsAmountPerYear),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
3,
|
|
|
|
|
TranslationBase.of(context).consumed,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmount != null
|
|
|
|
|
? int.parse(model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmount)
|
|
|
|
|
: 0,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPoints,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmountPerYear),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
|
vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/expired_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.expiredPoints} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
LacumPointsWidget(mediaQuery, 4, TranslationBase.of(context).transferred, 0, model.lacumGroupInformation.lakumInquiryInformationObjVersion.transferPoints,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.transferPointsAmountPerYear),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/expired_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.expiredPoints} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
|
vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/waiting_gained_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Waiting gained",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/waiting_gained_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Waiting gained",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
|
vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/will_be_expired_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Will Be Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsWillBeExpired} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/will_be_expired_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Will Be Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsWillBeExpired} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
));
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
navigateToLakumRegister(BuildContext context) {
|
|
|
|
|
Navigator.pushReplacement(context, FadePage(page: LakumRegistrationPage(projectViewModel.user.patientIdentificationNo)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -291,12 +245,7 @@ List<Widget> _buildAppBarICons(BuildContext context, LacumViewModel model) {
|
|
|
|
|
icon: Icon(Icons.settings),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LakumSettingPage(
|
|
|
|
|
model.lacumInformation, model.lacumGroupInformation)))
|
|
|
|
|
.then((result) => {model.getLacumGroupData()});
|
|
|
|
|
Navigator.push(context, FadePage(page: LakumSettingPage(model.lacumInformation, model.lacumGroupInformation))).then((result) => {model.getLacumGroupData()});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
];
|
|
|
|
@ -318,9 +267,7 @@ class LakumHomeButtons extends StatelessWidget {
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
print("Account activate click");
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, FadePage(page: LakumActivationVidaPage()))
|
|
|
|
|
.then((result) => {model.getLacumGroupData()});
|
|
|
|
|
Navigator.push(context, FadePage(page: LakumActivationVidaPage())).then((result) => {model.getLacumGroupData()});
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
@ -363,12 +310,7 @@ class LakumHomeButtons extends StatelessWidget {
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
print("Lacum transfer click");
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LacumTransferPage(model.lacumInformation,
|
|
|
|
|
model.lacumGroupInformation)))
|
|
|
|
|
.then((result) => {model.getLacumGroupData()});
|
|
|
|
|
Navigator.push(context, FadePage(page: LacumTransferPage(model.lacumInformation, model.lacumGroupInformation))).then((result) => {model.getLacumGroupData()});
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
@ -419,8 +361,7 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
Color titleColor;
|
|
|
|
|
final List<PointsAmountPerYear> pointsAmountPerYear;
|
|
|
|
|
|
|
|
|
|
LacumPointsWidget(this.mediaQuery, this.pointType, this.title, this.riyal,
|
|
|
|
|
this.point, this.pointsAmountPerYear) {
|
|
|
|
|
LacumPointsWidget(this.mediaQuery, this.pointType, this.title, this.riyal, this.point, this.pointsAmountPerYear) {
|
|
|
|
|
if (pointType == 1) {
|
|
|
|
|
titleColor = Color(0xffefefef);
|
|
|
|
|
} else if (pointType == 2) {
|
|
|
|
@ -438,8 +379,7 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (pointType != 1) {
|
|
|
|
|
if (pointsAmountPerYear != null && pointsAmountPerYear.length > 0) {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: LakumPointsYearPage(pointsAmountPerYear)));
|
|
|
|
|
Navigator.push(context, FadePage(page: LakumPointsYearPage(pointsAmountPerYear)));
|
|
|
|
|
} else {
|
|
|
|
|
// show snackBar No Details Points are there
|
|
|
|
|
}
|
|
|
|
|