|
|
|
@ -7,6 +7,7 @@ import 'package:diplomaticquarterapp/pages/pharmacies/screens/lacum-setting-page
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lacum-transfer-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lakum-points-year-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/widgets/lacum-banner-widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
@ -25,21 +26,11 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
return BaseView<LacumViewModel>(
|
|
|
|
|
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()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onModelReady: (model) => model.getLacumData(),
|
|
|
|
|
builder: (_, model, wi) => AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).lakum,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isPharmacy: true,
|
|
|
|
|
showPharmacyCart: false,
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
@ -48,7 +39,10 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
body: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: (model.lacumGroupInformation != null && model.lacumGroupInformation.lakumInquiryInformationObjVersion != null)
|
|
|
|
|
child: (model.lacumGroupInformation != null &&
|
|
|
|
|
model.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion !=
|
|
|
|
|
null)
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
@ -59,31 +53,75 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(width: mediaQuery.size.width * 1, child: LakumBannerWidget(model, mediaQuery, true)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: mediaQuery.size.height * 0.02,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: mediaQuery.size.width * 1,
|
|
|
|
|
child: LakumBannerWidget(
|
|
|
|
|
model, mediaQuery, true)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
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,
|
|
|
|
|
height: 125,
|
|
|
|
|
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),
|
|
|
|
|
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),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
2,
|
|
|
|
|
TranslationBase.of(context).gained,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.pointsBalanceAmount,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.gainedPoints,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.gainedPointsAmountPerYear),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
@ -91,21 +129,65 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
mediaQuery,
|
|
|
|
|
3,
|
|
|
|
|
TranslationBase.of(context).consumed,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmount != null
|
|
|
|
|
? int.parse(model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmount)
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPointsAmount !=
|
|
|
|
|
null
|
|
|
|
|
? int.parse(model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.consumedPointsAmount)
|
|
|
|
|
: 0,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPoints,
|
|
|
|
|
model.lacumGroupInformation.lakumInquiryInformationObjVersion.consumedPointsAmountPerYear),
|
|
|
|
|
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),
|
|
|
|
|
LacumPointsWidget(
|
|
|
|
|
mediaQuery,
|
|
|
|
|
4,
|
|
|
|
|
TranslationBase.of(context).transferred,
|
|
|
|
|
0,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.transferPoints,
|
|
|
|
|
model
|
|
|
|
|
.lacumGroupInformation
|
|
|
|
|
.lakumInquiryInformationObjVersion
|
|
|
|
|
.transferPointsAmountPerYear),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
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,
|
|
|
|
@ -115,7 +197,8 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
@ -130,66 +213,66 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Expired",
|
|
|
|
|
TranslationBase.of(context).Expired,
|
|
|
|
|
// "Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.expiredPoints} Points",
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.expiredPoints}${TranslationBase.of(context).lakumPoint} ",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
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(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/pharmacy_module/lakum/waiting_gained_icon.png",
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 25,
|
|
|
|
|
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(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.Waitinggained,
|
|
|
|
|
// "Waiting gained",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Waiting gained",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} Points",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} ${TranslationBase.of(context).lakumPoint}",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
])),
|
|
|
|
|
// Texts(
|
|
|
|
|
// "${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} Points",
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
// ),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.symmetric(vertical: 16, horizontal: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
@ -204,20 +287,27 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Will Be Expired",
|
|
|
|
|
TranslationBase.of(context).WillBeExpired,
|
|
|
|
|
// "Will Be Expired",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsWillBeExpired} Points",
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsWillBeExpired} ${TranslationBase.of(context).lakumPoint}",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// Texts(
|
|
|
|
|
// "${model.lacumGroupInformation.lakumInquiryInformationObjVersion.pointsWillBeExpired} Points",
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
width: double.infinity,
|
|
|
|
@ -235,7 +325,11 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
navigateToLakumRegister(BuildContext context) {
|
|
|
|
|
Navigator.pushReplacement(context, FadePage(page: LakumRegistrationPage(projectViewModel.user.patientIdentificationNo)));
|
|
|
|
|
Navigator.pushReplacement(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LakumRegistrationPage(
|
|
|
|
|
projectViewModel.user.patientIdentificationNo)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -245,7 +339,12 @@ 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()});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
];
|
|
|
|
@ -267,7 +366,9 @@ 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),
|
|
|
|
@ -310,7 +411,12 @@ 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),
|
|
|
|
@ -361,7 +467,8 @@ 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) {
|
|
|
|
@ -379,15 +486,18 @@ 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 {
|
|
|
|
|
AppToast.showErrorToast(
|
|
|
|
|
message: TranslationBase.of(context).lakumMsg);
|
|
|
|
|
// show snackBar No Details Points are there
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
width: mediaQuery.size.width / 2 - 16,
|
|
|
|
|
padding: EdgeInsets.only(top: 12, left: 8, right: 8, bottom: 4),
|
|
|
|
|
width: mediaQuery.size.width / 2 - 25,
|
|
|
|
|
padding: EdgeInsets.only(top: 12, left: 8, right: 8, bottom: 2),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
@ -434,7 +544,8 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
"RIYAL",
|
|
|
|
|
TranslationBase.of(context).RIYAL,
|
|
|
|
|
// "RIYAL",
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: pointType == 1 ? Colors.white : Colors.black,
|
|
|
|
@ -460,12 +571,13 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 4),
|
|
|
|
|
margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
"POINT",
|
|
|
|
|
TranslationBase.of(context).point,
|
|
|
|
|
// "POINT",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: pointType == 1 ? Colors.white : Colors.black,
|
|
|
|
|