update-to-3.32-sdk
haroon amjad 10 months ago
parent afd7c5db81
commit a6164c6c6b

@ -2843,6 +2843,6 @@ const Map localizedValues = {
"pleaseEnterValidMobile": {"en": "Please enter valid phone number", "ar": "الرجاء إدخال رقم هاتف صالح"}, "pleaseEnterValidMobile": {"en": "Please enter valid phone number", "ar": "الرجاء إدخال رقم هاتف صالح"},
"pleaseEnterNationalIdOrFileNo": {"en": "Please enter National id or File no", "ar": "الرجاء إدخال رقم الهوية الوطنية أو رقم الملف"}, "pleaseEnterNationalIdOrFileNo": {"en": "Please enter National id or File no", "ar": "الرجاء إدخال رقم الهوية الوطنية أو رقم الملف"},
"thisResult": {"en": "This Result", "ar": "هذه النتيجة"}, "thisResult": {"en": "This Result", "ar": "هذه النتيجة"},
"seeAllGraphValues": {"en": "See all values", "ar": "شاهد جميع القيم"}, "seeAllGraphValues": {"en": "View all results", "ar": "عرض جميع النتائج"},
"verify-with-biometric": {"en": "Biometric", "ar": "الحيوية"}, "verify-with-biometric": {"en": "Biometric", "ar": "الحيوية"},
}; };

@ -187,8 +187,8 @@ class BaseAppClient {
// body['IdentificationNo'] = 1023854217; // body['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232 // body['MobileNo'] = "531940021"; //0560717232
body['PatientID'] = 1018977; //4609100 // body['PatientID'] = 53320; //4609100
body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
// Patient ID: 3027574 // Patient ID: 3027574
// Mobile no.: 0502303285 // Mobile no.: 0502303285

@ -325,7 +325,7 @@ class LabsService extends BaseService {
return bDate.compareTo(aDate); // descending return bDate.compareTo(aDate); // descending
}); });
print("the copied item are $copy"); // print("the copied item are $copy");
labOrdersResultsList = copy; labOrdersResultsList = copy;
return copy.take(3).toList(); return copy.take(3).toList();
} }

@ -7,10 +7,13 @@ import 'package:flutter/material.dart';
class FullScreenGraph extends StatelessWidget { class FullScreenGraph extends StatelessWidget {
final List<DataPoint> completeeGraphValues; final List<DataPoint> completeeGraphValues;
final List<ThresholdRange> threshold; final List<ThresholdRange> threshold;
final double maxY; final double maxY;
const FullScreenGraph({super.key, required this.completeeGraphValues, required this.threshold, required this.maxY}); const FullScreenGraph({super.key, required this.completeeGraphValues, required this.threshold, required this.maxY});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AppScaffold( return AppScaffold(
@ -18,6 +21,7 @@ class FullScreenGraph extends StatelessWidget {
appBarTitle: TranslationBase.of(context).labResult, appBarTitle: TranslationBase.of(context).labResult,
showNewAppBar: true, showNewAppBar: true,
showNewAppBarTitle: true, showNewAppBarTitle: true,
showHomeAppBarIcon: false,
backgroundColor: Color(0xffF8F8F8), backgroundColor: Color(0xffF8F8F8),
body: RotatedBox( body: RotatedBox(
quarterTurns: 1, quarterTurns: 1,
@ -41,6 +45,7 @@ class FullScreenGraph extends StatelessWidget {
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
height: MediaQuery.sizeOf(context).width, height: MediaQuery.sizeOf(context).width,
isFullScreenGraph: true, isFullScreenGraph: true,
// isFullScreenGraph: false,
), ),
), ),
), ),

@ -262,6 +262,7 @@ class _AppScaffoldState extends State<AppScaffold> {
showCenterLogo: widget.showCenteredLogo, showCenterLogo: widget.showCenteredLogo,
isShowLanguageChanger: widget.isShowLanguageChanger, isShowLanguageChanger: widget.isShowLanguageChanger,
showSavedLoginBar: widget.showLastLoginScreenBar, showSavedLoginBar: widget.showLastLoginScreenBar,
showHomeAppBarIcon: widget.showHomeAppBarIcon,
onTap: () { onTap: () {
widget.onTap; widget.onTap;
}, },
@ -297,11 +298,7 @@ class _AppScaffoldState extends State<AppScaffold> {
icon: widget.icon, icon: widget.icon,
) )
: widget.baseViewModel != null : widget.baseViewModel != null
? NetworkBaseView( ? NetworkBaseView(child: buildBodyWidget(context), baseViewModel: widget.baseViewModel, showLoader: widget.showLoader)
child: buildBodyWidget(context),
baseViewModel: widget.baseViewModel,
showLoader : widget.showLoader
)
: buildBodyWidget(context), : buildBodyWidget(context),
), ),
bottomNavigationBar: widget.isBottomBar bottomNavigationBar: widget.isBottomBar
@ -369,6 +366,7 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
final bool isShowLanguageChanger; final bool isShowLanguageChanger;
final bool showCenterLogo; final bool showCenterLogo;
final bool showSavedLoginBar; final bool showSavedLoginBar;
final bool? showHomeAppBarIcon;
String currentLang = 'ar'; String currentLang = 'ar';
@ -388,6 +386,7 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
this.isShowLanguageChanger = false, this.isShowLanguageChanger = false,
this.showCenterLogo = false, this.showCenterLogo = false,
this.showSavedLoginBar = false, this.showSavedLoginBar = false,
this.showHomeAppBarIcon = true,
}) : super(key: key); }) : super(key: key);
@override @override
@ -586,7 +585,8 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
if (appBarIcons != null) if (appBarIcons != null)
...appBarIcons! ...appBarIcons!
else else
IconButton( showHomeAppBarIcon!
? IconButton(
onPressed: () { onPressed: () {
AppSharedPreferences().remove(IS_LIVECARE_APPOINTMENT); AppSharedPreferences().remove(IS_LIVECARE_APPOINTMENT);
Navigator.pushAndRemoveUntil( Navigator.pushAndRemoveUntil(
@ -596,7 +596,8 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
); );
}, },
icon: Icon(Icons.home), icon: Icon(Icons.home),
), )
: Container(),
], ],
); );
} }
@ -623,7 +624,7 @@ class AppBarWidget extends StatefulWidget implements PreferredSizeWidget {
AppBarWidget( AppBarWidget(
{this.appBarTitle, {this.appBarTitle,
this.showHomeAppBarIcon, this.showHomeAppBarIcon = true,
this.appBarIcons, this.appBarIcons,
this.isPharmacy = true, this.isPharmacy = true,
this.isshowBackButton = true, this.isshowBackButton = true,

Loading…
Cancel
Save