|
|
|
|
@ -5,6 +5,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';
|
|
|
|
|
@ -47,7 +48,7 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: mediaQuery.size.height * 0.05,
|
|
|
|
|
height: mediaQuery.size.height * 0.02,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: mediaQuery.size.width * 1,
|
|
|
|
|
@ -65,7 +66,7 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
height: 125,
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
@ -174,15 +175,15 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Expired",
|
|
|
|
|
child: Texts(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,
|
|
|
|
|
),
|
|
|
|
|
@ -214,15 +215,15 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Waiting gained",
|
|
|
|
|
child: Texts(TranslationBase.of(context).Waitinggained,
|
|
|
|
|
// "Waiting gained",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} Points",
|
|
|
|
|
"${model.lacumGroupInformation.lakumInquiryInformationObjVersion.waitingPoints} ${TranslationBase.of(context).lakumPoint}",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
@ -254,15 +255,15 @@ class LakumMainPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Texts(
|
|
|
|
|
"Will Be Expired",
|
|
|
|
|
child: Texts(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,
|
|
|
|
|
),
|
|
|
|
|
@ -441,13 +442,16 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
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),
|
|
|
|
|
@ -493,8 +497,8 @@ class LacumPointsWidget extends StatelessWidget {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
"RIYAL",
|
|
|
|
|
Texts(TranslationBase.of(context).RIYAL,
|
|
|
|
|
// "RIYAL",
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: pointType == 1 ? Colors.white : Colors.black,
|
|
|
|
|
@ -520,12 +524,12 @@ 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",
|
|
|
|
|
Texts(TranslationBase.of(context).point,
|
|
|
|
|
// "POINT",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: pointType == 1 ? Colors.white : Colors.black,
|
|
|
|
|
|