diff --git a/assets/images/book.svg b/assets/images/book.svg
deleted file mode 100644
index d4679486..00000000
--- a/assets/images/book.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/images/robort_svg.svg b/assets/images/svg/robort_svg.svg
similarity index 100%
rename from assets/images/robort_svg.svg
rename to assets/images/svg/robort_svg.svg
diff --git a/assets/images/symptom.svg b/assets/images/svg/symptom.svg
similarity index 100%
rename from assets/images/symptom.svg
rename to assets/images/svg/symptom.svg
diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart
index f5494049..16b3286c 100644
--- a/lib/core/service/client/base_app_client.dart
+++ b/lib/core/service/client/base_app_client.dart
@@ -32,7 +32,9 @@ class BaseAppClient {
var user = await sharedPref.getObject(USER_PROFILE);
if (body.containsKey('SetupID')) {
body['SetupID'] = body.containsKey('SetupID')
- ? body['SetupID'] != null ? body['SetupID'] : SETUP_ID
+ ? body['SetupID'] != null
+ ? body['SetupID']
+ : SETUP_ID
: SETUP_ID;
}
body['VersionID'] = VERSION_ID;
@@ -41,7 +43,9 @@ class BaseAppClient {
body['IPAdress'] = IP_ADDRESS;
body['generalid'] = GENERAL_ID;
body['PatientOutSA'] = body.containsKey('PatientOutSA')
- ? body['PatientOutSA'] != null ? body['PatientOutSA'] : PATIENT_OUT_SA
+ ? body['PatientOutSA'] != null
+ ? body['PatientOutSA']
+ : PATIENT_OUT_SA
: PATIENT_OUT_SA;
if (body.containsKey('isDentalAllowedBackend')) {
@@ -55,30 +59,32 @@ class BaseAppClient {
body['DeviceTypeID'] = DeviceTypeID;
- if(!body.containsKey('IsPublicRequest')) {
+ if (!body.containsKey('IsPublicRequest')) {
body['PatientType'] = body.containsKey('PatientType')
- ? body['PatientType'] != null ? body['PatientType'] : PATIENT_TYPE
+ ? body['PatientType'] != null
+ ? body['PatientType']
+ : PATIENT_TYPE
: PATIENT_TYPE;
body['PatientTypeID'] = body.containsKey('PatientTypeID')
? body['PatientTypeID'] != null
- ? body['PatientTypeID']
- : PATIENT_TYPE_ID
+ ? body['PatientTypeID']
+ : PATIENT_TYPE_ID
: PATIENT_TYPE_ID;
if (user != null) {
body['TokenID'] = token;
body['PatientID'] =
- body['PatientID'] != null ? body['PatientID'] : user['PatientID'];
+ body['PatientID'] != null ? body['PatientID'] : user['PatientID'];
body['PatientOutSA'] = user['OutSA'];
- body['SessionID'] = getSessionId(token);
+ body['SessionID'] = SESSION_ID;//getSessionId(token);
}
}
print("URL : $url");
print("Body : ${json.encode(body)}");
- var asd="";
+ var asd = "";
if (await Utils.checkConnection()) {
final response = await http.post(url.trim(),
body: json.encode(body),
@@ -139,6 +145,7 @@ class BaseAppClient {
}
String getSessionId(String id) {
- return id.replaceAll(RegExp('/[^a-zA-Z ]'), '');
+ ///return id.replaceAll(RegExp('/[^\w\s]/'), '');
+ // return id.replaceAll(RegExp('/[^a-zA-Z ]'), '');
}
}
diff --git a/lib/main.dart b/lib/main.dart
index ec42e7a3..d8e3307d 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -66,7 +66,8 @@ class MyApp extends StatelessWidget {
hintColor: Colors.grey[400],
disabledColor: Colors.grey[300],
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
- scaffoldBackgroundColor:Hexcolor('#E9E9E9'),// Colors.grey[100],
+ scaffoldBackgroundColor:
+ HexColor('#E9E9E9'), // Colors.grey[100],
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
textSelectionHandleColor: Colors.grey,
canvasColor: Colors.white,
@@ -74,9 +75,8 @@ class MyApp extends StatelessWidget {
highlightColor: Colors.grey[100].withOpacity(0.4),
splashColor: Colors.transparent,
primaryColor: Colors.grey,
- bottomSheetTheme:BottomSheetThemeData(
- backgroundColor: Hexcolor('#E0E0E0')
- ) ,
+ bottomSheetTheme: BottomSheetThemeData(
+ backgroundColor: HexColor('#E0E0E0')),
cursorColor: Colors.grey,
iconTheme: IconThemeData(),
appBarTheme: AppBarTheme(
diff --git a/lib/pages/AlHabibMedicalService/E-Referral/e_referral_index_page.dart b/lib/pages/AlHabibMedicalService/E-Referral/e_referral_index_page.dart
index 00148889..ef0be383 100644
--- a/lib/pages/AlHabibMedicalService/E-Referral/e_referral_index_page.dart
+++ b/lib/pages/AlHabibMedicalService/E-Referral/e_referral_index_page.dart
@@ -17,66 +17,63 @@ import 'e_referral_page.dart';
class EReferralIndexPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return AppScaffold(
- isShowAppBar: true,
- appBarTitle: "Service Information",
- body: SingleChildScrollView(
+ return AppScaffold(
+ isShowAppBar: true,
+ appBarTitle: "Service Information",
+ body: SingleChildScrollView(
padding: EdgeInsets.all(12),
- child:
- Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Texts(
- "E-Referral: ",
- fontWeight: FontWeight.normal,
- fontSize: 25,
- color: Hexcolor("#60686b"),
- ),
- SizedBox(
- height: 12,
- ),
- Texts(
- "This service allows you to submit a Referral request from any health care providers either inside or outside the kingdom of Saudi Arabia to any of HMG Hospitals, By filling some of the patient's data and attaching the medical reports, moreover you can track the request status (Under process, Accepted or Rejected)",
- fontWeight: FontWeight.normal,
- fontSize: 17,
- ),
- SizedBox(
- height: 22,
- ),
- Center(
- child: SizedBox(
- height: MediaQuery.of(context).size.height * 0.55,
- width: MediaQuery.of(context).size.width * 0.50,
- child: CarouselSlider(
- imagesUrlList: [
- "https://hmgwebservices.com/Images/MobileApp/images-info-home/referal/en/0.png",
- "https://hmgwebservices.com/Images/MobileApp/images-info-home/referal/en/1.png"
- ],
- ),
- ),
- ),
- SizedBox(
- height: 77,
- ),
- ],
- )
-
- ),
- bottomSheet: Container(
- height: MediaQuery.of(context).size.height * 0.10,
- width: double.infinity,
child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Container(
- width: MediaQuery.of(context).size.width * 0.9,
- child: SecondaryButton(
- onTap: ()=> Navigator.push(context, FadePage(page: EReferralPage())),
- label: "E-Referral",
- textColor: Theme.of(context).backgroundColor),
+ Texts(
+ "E-Referral: ",
+ fontWeight: FontWeight.normal,
+ fontSize: 25,
+ color: HexColor("#60686b"),
+ ),
+ SizedBox(
+ height: 12,
+ ),
+ Texts(
+ "This service allows you to submit a Referral request from any health care providers either inside or outside the kingdom of Saudi Arabia to any of HMG Hospitals, By filling some of the patient's data and attaching the medical reports, moreover you can track the request status (Under process, Accepted or Rejected)",
+ fontWeight: FontWeight.normal,
+ fontSize: 17,
+ ),
+ SizedBox(
+ height: 22,
+ ),
+ Center(
+ child: SizedBox(
+ height: MediaQuery.of(context).size.height * 0.55,
+ width: MediaQuery.of(context).size.width * 0.50,
+ child: CarouselSlider(
+ imagesUrlList: [
+ "https://hmgwebservices.com/Images/MobileApp/images-info-home/referal/en/0.png",
+ "https://hmgwebservices.com/Images/MobileApp/images-info-home/referal/en/1.png"
+ ],
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 77,
),
],
- ),
-
- ));
+ )),
+ bottomSheet: Container(
+ height: MediaQuery.of(context).size.height * 0.10,
+ width: double.infinity,
+ child: Column(
+ children: [
+ Container(
+ width: MediaQuery.of(context).size.width * 0.9,
+ child: SecondaryButton(
+ onTap: () => Navigator.push(
+ context, FadePage(page: EReferralPage())),
+ label: "E-Referral",
+ textColor: Theme.of(context).backgroundColor),
+ ),
+ ],
+ ),
+ ));
}
}
diff --git a/lib/pages/AlHabibMedicalService/h2o/h2o_index_page.dart b/lib/pages/AlHabibMedicalService/h2o/h2o_index_page.dart
index 9ce35d27..68ce1936 100644
--- a/lib/pages/AlHabibMedicalService/h2o/h2o_index_page.dart
+++ b/lib/pages/AlHabibMedicalService/h2o/h2o_index_page.dart
@@ -23,7 +23,7 @@ class H2OPageIndexPage extends StatelessWidget {
"Water Tracker:",
fontWeight: FontWeight.normal,
fontSize: 25,
- color: Hexcolor("#60686b"),
+ color: HexColor("#60686b"),
),
SizedBox(
height: 12,
diff --git a/lib/pages/AlHabibMedicalService/h2o/today_page.dart b/lib/pages/AlHabibMedicalService/h2o/today_page.dart
index 55767e5a..b92efc9e 100644
--- a/lib/pages/AlHabibMedicalService/h2o/today_page.dart
+++ b/lib/pages/AlHabibMedicalService/h2o/today_page.dart
@@ -6,10 +6,11 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:percent_indicator/circular_percent_indicator.dart';
+
class TodayPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return BaseView(
+ return BaseView(
onModelReady: (model) => model.getUserProgressForTodayData(),
builder: (_, model, widget) => AppScaffold(
isShowAppBar: false,
@@ -27,11 +28,11 @@ class TodayPage extends StatelessWidget {
animation: true,
animationDuration: 1200,
lineWidth: 15.0,
- percent:model.userProgressData ==null ?0.0:
- (model.userProgressData.percentageConsumed /
- 100) >= 1 ? 1 : (model.userProgressData
- .percentageConsumed /
- 100),
+ percent: model.userProgressData == null
+ ? 0.0
+ : (model.userProgressData.percentageConsumed / 100) >= 1
+ ? 1
+ : (model.userProgressData.percentageConsumed / 100),
//,
center: Center(
child: Column(
@@ -46,13 +47,16 @@ class TodayPage extends StatelessWidget {
SizedBox(
height: 4,
),
- Text(model.userProgressData ==null ?"0.0":
- model.userProgressData.quantityConsumed
- .toString() + 'ml',
+ Text(
+ model.userProgressData == null
+ ? "0.0"
+ : model.userProgressData.quantityConsumed
+ .toString() +
+ 'ml',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 20.0,
- color: Hexcolor("#60BCF9")),
+ color: HexColor("#60BCF9")),
),
SizedBox(
height: 4,
@@ -60,9 +64,7 @@ class TodayPage extends StatelessWidget {
SizedBox(
height: 5,
width: 50,
- child: Container(
-
- ),
+ child: Container(),
),
SizedBox(
height: 4,
@@ -74,23 +76,28 @@ class TodayPage extends StatelessWidget {
SizedBox(
height: 4,
),
- Text(model.userProgressData ==null ?"0.0":
- (model.userProgressData.quantityLimit -
- model.userProgressData
- .quantityConsumed) < 0 ? "0 ml" :
- (model.userProgressData.quantityLimit -
- model.userProgressData
- .quantityConsumed).toString() + ' ml',
+ Text(
+ model.userProgressData == null
+ ? "0.0"
+ : (model.userProgressData.quantityLimit -
+ model.userProgressData
+ .quantityConsumed) <
+ 0
+ ? "0 ml"
+ : (model.userProgressData.quantityLimit -
+ model.userProgressData
+ .quantityConsumed)
+ .toString() +
+ ' ml',
style: TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 18.0),
+ fontWeight: FontWeight.bold, fontSize: 18.0),
),
],
),
),
circularStrokeCap: CircularStrokeCap.butt,
- backgroundColor: Hexcolor("#D1E3F6"),
- progressColor: Hexcolor("#60BCF9"),
+ backgroundColor: HexColor("#D1E3F6"),
+ progressColor: HexColor("#60BCF9"),
),
),
Row(
@@ -105,9 +112,9 @@ class TodayPage extends StatelessWidget {
height: 30,
width: 70,
decoration: BoxDecoration(
- color: Hexcolor("#D1E3F6"),
- borderRadius: BorderRadius.all(
- Radius.circular(30))),
+ color: HexColor("#D1E3F6"),
+ borderRadius:
+ BorderRadius.all(Radius.circular(30))),
),
),
Text(
@@ -125,9 +132,9 @@ class TodayPage extends StatelessWidget {
height: 30,
width: 70,
decoration: BoxDecoration(
- color: Hexcolor("#60BCF9"),
- borderRadius: BorderRadius.all(
- Radius.circular(30))),
+ color: HexColor("#60BCF9"),
+ borderRadius:
+ BorderRadius.all(Radius.circular(30))),
),
),
Text(
@@ -143,10 +150,7 @@ class TodayPage extends StatelessWidget {
),
SizedBox(
height: 0.5,
- width: MediaQuery
- .of(context)
- .size
- .width,
+ width: MediaQuery.of(context).size.width,
child: Container(
color: Colors.grey,
),
@@ -163,4 +167,3 @@ class TodayPage extends StatelessWidget {
);
}
}
-
diff --git a/lib/pages/Blood/my_balance_page.dart b/lib/pages/Blood/my_balance_page.dart
index 07d27e2d..26665c2b 100644
--- a/lib/pages/Blood/my_balance_page.dart
+++ b/lib/pages/Blood/my_balance_page.dart
@@ -39,7 +39,7 @@ class MyBalancePage extends StatelessWidget {
width: double.infinity,
height: 65,
decoration: BoxDecoration(
- color: Hexcolor('#B61422'),
+ color: HexColor('#B61422'),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(7),
),
@@ -97,7 +97,8 @@ class MyBalancePage extends StatelessWidget {
textColor: Colors.white,
label: TranslationBase.of(context).createAdvancedPayment,
onTap: () {
- Navigator.push(context,
+ Navigator.push(
+ context,
//FadePage(page: AdvancePaymentPage()));
FadePage(page: BloodDonationPage()));
},
diff --git a/lib/pages/BookAppointment/SearchResults.dart b/lib/pages/BookAppointment/SearchResults.dart
index e9767072..bd4bb601 100644
--- a/lib/pages/BookAppointment/SearchResults.dart
+++ b/lib/pages/BookAppointment/SearchResults.dart
@@ -21,12 +21,6 @@ class _SearchResultsState extends State {
// var event = RobotProvider();
List tempList = [];
- @override
- void initState() {
- // event.controller.stream.listen((p) {});
- super.initState();
- }
-
@override
Widget build(BuildContext context) {
return AppScaffold(
@@ -41,6 +35,7 @@ class _SearchResultsState extends State {
...List.generate(
widget.patientDoctorAppointmentListHospital.length,
(index) => AppExpandableNotifier(
+ isExpand: index == 1 ? true : false,
title: widget.patientDoctorAppointmentListHospital[index]
.filterName +
" - " +
diff --git a/lib/pages/BookAppointment/widgets/BranchView.dart b/lib/pages/BookAppointment/widgets/BranchView.dart
index 455a579b..58ccbd1a 100644
--- a/lib/pages/BookAppointment/widgets/BranchView.dart
+++ b/lib/pages/BookAppointment/widgets/BranchView.dart
@@ -31,6 +31,7 @@ class _BranchViewState extends State {
body: new ListView.builder(
itemBuilder: (BuildContext context, int index) {
return new ExpandableListView(
+ isExpanded: index == 0 ? true : false,
result2: widget.result,
resultDistance: widget.resultDistance,
val: index,
@@ -48,8 +49,14 @@ class ExpandableListView extends StatefulWidget {
final List doctorsList2;
final val;
static int doctorListheight = 0;
+ final bool isExpanded;
const ExpandableListView(
- {Key key, this.result2, this.resultDistance, this.val, this.doctorsList2})
+ {Key key,
+ this.result2,
+ this.resultDistance,
+ this.val,
+ this.doctorsList2,
+ this.isExpanded})
: super(key: key);
@override
@@ -58,9 +65,17 @@ class ExpandableListView extends StatefulWidget {
class _ExpandableListViewState extends State {
bool expandFlag = false;
-
+ @override
+ void initState() {
+ setState(() {
+ expandFlag = widget.isExpanded;
+ setDoctorViewHeight(widget.result2[widget.val].toString());
+ });
+ super.initState();
+ }
@override
Widget build(BuildContext context) {
+
return new Container(
width: MediaQuery.of(context).size.width * 0.6,
margin: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 0.0),
diff --git a/lib/pages/landing/home_page.dart b/lib/pages/landing/home_page.dart
index 9b702ff3..3c253aa8 100644
--- a/lib/pages/landing/home_page.dart
+++ b/lib/pages/landing/home_page.dart
@@ -123,7 +123,7 @@ class _HomePageState extends State {
width: double.infinity,
height: 125,
decoration: BoxDecoration(
- color: Hexcolor('#A59E9E'),
+ color: HexColor('#A59E9E'),
shape: BoxShape.rectangle,
border: Border.all(
color: Colors.transparent, width: 0.5),
@@ -169,7 +169,7 @@ class _HomePageState extends State {
width: 90,
height: 30,
decoration: BoxDecoration(
- color: Hexcolor('#D81A2E'),
+ color: HexColor('#D81A2E'),
shape: BoxShape.rectangle,
border: Border.all(
color: Colors.transparent,
@@ -196,7 +196,7 @@ class _HomePageState extends State {
width: double.infinity,
height: 130,
decoration: BoxDecoration(
- color: Hexcolor('#A59E9E'),
+ color: HexColor('#A59E9E'),
shape: BoxShape.rectangle,
border: Border.all(
color: Colors.transparent, width: 0.5),
@@ -256,7 +256,7 @@ class _HomePageState extends State {
width: 90,
height: 30,
decoration: BoxDecoration(
- color: Hexcolor('#D81A2E'),
+ color: HexColor('#D81A2E'),
shape: BoxShape.rectangle,
border: Border.all(
color: Colors.transparent,
@@ -364,7 +364,7 @@ class _HomePageState extends State {
height: 50,
),
SizedBox(
- height: 5,
+ height: 3,
),
Texts(
TranslationBase.of(context)
@@ -401,7 +401,7 @@ class _HomePageState extends State {
textAlign: TextAlign.center,
color: Colors.white,
bold: true,
- fontSize: SizeConfig.textMultiplier * 2.0,
+ fontSize: SizeConfig.textMultiplier * 1.7,
)
],
),
@@ -422,21 +422,21 @@ class _HomePageState extends State {
height: 50,
),
SizedBox(
- height: 5,
+ height: 3,
),
Texts(
TranslationBase.of(context).emergencyService,
textAlign: TextAlign.center,
color: Colors.white,
bold: true,
- fontSize: SizeConfig.textMultiplier * 2.0,
+ fontSize: SizeConfig.textMultiplier * 1.7,
)
],
),
),
),
height: MediaQuery.of(context).size.width * 0.4,
- color: Hexcolor("#747C80"),
+ color: HexColor("#747C80"),
imageName: 'emergency_service_image.png',
),
],
@@ -473,7 +473,7 @@ class _HomePageState extends State {
textAlign: TextAlign.center,
color: Colors.black87,
bold: false,
- fontSize: SizeConfig.textMultiplier * 1.9,
+ fontSize: SizeConfig.textMultiplier * 1.7,
)
],
),
@@ -497,7 +497,7 @@ class _HomePageState extends State {
height: 55,
),
SizedBox(
- height: 15,
+ height: 10,
),
Texts(
TranslationBase.of(context)
@@ -505,7 +505,7 @@ class _HomePageState extends State {
textAlign: TextAlign.center,
color: Colors.black87,
bold: false,
- fontSize: SizeConfig.textMultiplier * 2,
+ fontSize: SizeConfig.textMultiplier * 1.7,
)
],
),
@@ -537,7 +537,7 @@ class _HomePageState extends State {
height: 50,
),
SizedBox(
- height: 15,
+ height: 10,
),
Texts(
TranslationBase.of(context)
@@ -545,7 +545,7 @@ class _HomePageState extends State {
textAlign: TextAlign.center,
color: Colors.black87,
bold: false,
- fontSize: SizeConfig.textMultiplier * 2.0,
+ fontSize: SizeConfig.textMultiplier * 1.7,
)
],
),
@@ -563,7 +563,7 @@ class _HomePageState extends State {
),
),
SizedBox(
- height: 8,
+ height: 5,
),
Container(
margin: EdgeInsets.only(left: 15, right: 15),
@@ -698,7 +698,9 @@ class DashboardItem extends StatelessWidget {
: MediaQuery.of(context).size.height * 0.35,
decoration: BoxDecoration(
color: !hasBorder
- ? color != null ? color : Hexcolor('#050705').withOpacity(opacity)
+ ? color != null
+ ? color
+ : HexColor('#050705').withOpacity(opacity)
: Colors.white,
borderRadius: BorderRadius.circular(6.0),
border: hasBorder
@@ -706,7 +708,7 @@ class DashboardItem extends StatelessWidget {
: Border.all(width: 0.0, color: Colors.transparent),
image: imageName != null
? DecorationImage(
- image: AssetImage('assets/images/$imageName'),
+ image: ExactAssetImage('assets/images/$imageName'),
fit: BoxFit.cover,
colorFilter: new ColorFilter.mode(
Colors.black.withOpacity(0.2), BlendMode.dstIn),
diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart
index 23d1645c..dcfa3ba8 100644
--- a/lib/pages/landing/landing_page.dart
+++ b/lib/pages/landing/landing_page.dart
@@ -348,7 +348,7 @@ class _LandingPageState extends State with WidgetsBindingObserver {
actions: [
IconButton(
iconSize: 70,
- icon: SvgPicture.asset('assets/images/robort_svg.svg',
+ icon: SvgPicture.asset('assets/images/svg/robort_svg.svg',
height: 100, width: 100, fit: BoxFit.cover),
onPressed: () {
triggerRobot();
diff --git a/lib/pages/medical/balance/my_balance_page.dart b/lib/pages/medical/balance/my_balance_page.dart
index 446333cc..421e2bed 100644
--- a/lib/pages/medical/balance/my_balance_page.dart
+++ b/lib/pages/medical/balance/my_balance_page.dart
@@ -38,7 +38,7 @@ class MyBalancePage extends StatelessWidget {
width: double.infinity,
height: 65,
decoration: BoxDecoration(
- color: Hexcolor('#B61422'),
+ color: HexColor('#B61422'),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(7),
),
@@ -96,8 +96,7 @@ class MyBalancePage extends StatelessWidget {
textColor: Colors.white,
label: TranslationBase.of(context).createAdvancedPayment,
onTap: () {
- Navigator.push(context,
- FadePage(page: AdvancePaymentPage()));
+ Navigator.push(context, FadePage(page: AdvancePaymentPage()));
},
),
),
diff --git a/lib/pages/medical/my_trackers/Weight/WeightHomePage.dart b/lib/pages/medical/my_trackers/Weight/WeightHomePage.dart
index 7d7c5dd5..8e6f808c 100644
--- a/lib/pages/medical/my_trackers/Weight/WeightHomePage.dart
+++ b/lib/pages/medical/my_trackers/Weight/WeightHomePage.dart
@@ -135,7 +135,7 @@ class _WeightHomePageState extends State
width: 55,
height: 55,
decoration: BoxDecoration(
- shape: BoxShape.circle, color: Hexcolor('515B5D')),
+ shape: BoxShape.circle, color: HexColor('515B5D')),
child: Center(
child: Icon(
Icons.add,
diff --git a/lib/pages/medical/my_trackers/Weight/WeightMonthlyPage.dart b/lib/pages/medical/my_trackers/Weight/WeightMonthlyPage.dart
index 5bdbfeab..9f7063f1 100644
--- a/lib/pages/medical/my_trackers/Weight/WeightMonthlyPage.dart
+++ b/lib/pages/medical/my_trackers/Weight/WeightMonthlyPage.dart
@@ -15,8 +15,7 @@ class WeightMonthlyPage extends StatelessWidget {
final List> data;
final List diabtecPatientResult;
- const WeightMonthlyPage(
- {Key key, this.data, this.diabtecPatientResult})
+ const WeightMonthlyPage({Key key, this.data, this.diabtecPatientResult})
: super(key: key);
@override
@@ -67,7 +66,7 @@ class WeightMonthlyPage extends StatelessWidget {
children: [
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -83,18 +82,26 @@ class WeightMonthlyPage extends StatelessWidget {
),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
],
diff --git a/lib/pages/medical/my_trackers/Weight/WeightWeeklyPage.dart b/lib/pages/medical/my_trackers/Weight/WeightWeeklyPage.dart
index ac1a3214..9c3363dd 100644
--- a/lib/pages/medical/my_trackers/Weight/WeightWeeklyPage.dart
+++ b/lib/pages/medical/my_trackers/Weight/WeightWeeklyPage.dart
@@ -29,8 +29,9 @@ class WeightWeeklyPage extends StatelessWidget {
dateTimeFactory: const charts.LocalDateTimeFactory(),
),
),
- SizedBox(height: 12,),
-
+ SizedBox(
+ height: 12,
+ ),
Padding(
padding: const EdgeInsets.all(8.0),
child: Texts('Details'),
@@ -62,7 +63,7 @@ class WeightWeeklyPage extends StatelessWidget {
children: [
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -78,37 +79,50 @@ class WeightWeeklyPage extends StatelessWidget {
),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
),
child: Center(
- child: Texts('Edit', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Edit',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
],
),
);
- diabtecPatientResult.forEach((diabtec) {
+ diabtecPatientResult.forEach(
+ (diabtec) {
tableRow.add(
TableRow(
children: [
diff --git a/lib/pages/medical/my_trackers/Weight/WeightYeaPage.dart b/lib/pages/medical/my_trackers/Weight/WeightYeaPage.dart
index 3ddeaa82..587cc3f6 100644
--- a/lib/pages/medical/my_trackers/Weight/WeightYeaPage.dart
+++ b/lib/pages/medical/my_trackers/Weight/WeightYeaPage.dart
@@ -65,7 +65,7 @@ class WeightYearPage extends StatelessWidget {
children: [
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -81,25 +81,33 @@ class WeightYearPage extends StatelessWidget {
),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
],
),
);
diabtecPatientResult.forEach(
- (diabtec) {
+ (diabtec) {
tableRow.add(
TableRow(
children: [
diff --git a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureHomePage.dart b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureHomePage.dart
index c118f2ca..d2bcde47 100644
--- a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureHomePage.dart
+++ b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureHomePage.dart
@@ -138,7 +138,7 @@ class _BloodPressureHomePageState extends State
width: 55,
height: 55,
decoration: BoxDecoration(
- shape: BoxShape.circle, color: Hexcolor('515B5D')),
+ shape: BoxShape.circle, color: HexColor('515B5D')),
child: Center(
child: Icon(
Icons.add,
diff --git a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureMonthly.dart b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureMonthly.dart
index f38cc3b6..8b9e504f 100644
--- a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureMonthly.dart
+++ b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureMonthly.dart
@@ -67,7 +67,7 @@ class BloodPressureMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -85,7 +85,7 @@ class BloodPressureMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -99,7 +99,7 @@ class BloodPressureMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -113,7 +113,7 @@ class BloodPressureMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
@@ -149,7 +149,8 @@ class BloodPressureMonthlyPage extends StatelessWidget {
),
),
),
- Container(child: Container(
+ Container(
+ child: Container(
height: 70,
padding: EdgeInsets.all(10),
color: Colors.white,
@@ -160,7 +161,8 @@ class BloodPressureMonthlyPage extends StatelessWidget {
fontSize: 12,
),
),
- ),),
+ ),
+ ),
Container(
child: Container(
height: 70,
diff --git a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureYeaPage.dart b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureYeaPage.dart
index dfcf42ae..0c67be7c 100644
--- a/lib/pages/medical/my_trackers/blood_pressure/BloodPressureYeaPage.dart
+++ b/lib/pages/medical/my_trackers/blood_pressure/BloodPressureYeaPage.dart
@@ -65,7 +65,7 @@ class BloodPressureYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -83,7 +83,7 @@ class BloodPressureYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -97,7 +97,7 @@ class BloodPressureYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -108,11 +108,10 @@ class BloodPressureYearPage extends StatelessWidget {
),
height: 40),
),
-
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
diff --git a/lib/pages/medical/my_trackers/blood_pressure/bloodPressureWeeklyPage.dart b/lib/pages/medical/my_trackers/blood_pressure/bloodPressureWeeklyPage.dart
index fbcbf417..52313483 100644
--- a/lib/pages/medical/my_trackers/blood_pressure/bloodPressureWeeklyPage.dart
+++ b/lib/pages/medical/my_trackers/blood_pressure/bloodPressureWeeklyPage.dart
@@ -30,8 +30,9 @@ class BloodPressureWeeklyPage extends StatelessWidget {
dateTimeFactory: const charts.LocalDateTimeFactory(),
),
),
- SizedBox(height: 12,),
-
+ SizedBox(
+ height: 12,
+ ),
Padding(
padding: const EdgeInsets.all(8.0),
child: Texts('Details'),
@@ -64,7 +65,7 @@ class BloodPressureWeeklyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -82,50 +83,67 @@ class BloodPressureWeeklyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Measured', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Measured',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
),
child: Center(
- child: Texts('Edit', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Edit',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
],
),
);
- diabtecPatientResult.forEach((diabtec) {
+ diabtecPatientResult.forEach(
+ (diabtec) {
tableRow.add(
TableRow(
children: [
diff --git a/lib/pages/medical/my_trackers/blood_suger/BloodMonthly.dart b/lib/pages/medical/my_trackers/blood_suger/BloodMonthly.dart
index da31c4ed..fdd7b348 100644
--- a/lib/pages/medical/my_trackers/blood_suger/BloodMonthly.dart
+++ b/lib/pages/medical/my_trackers/blood_suger/BloodMonthly.dart
@@ -1,4 +1,3 @@
-
import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart';
import 'package:diplomaticquarterapp/core/model/my_trakers/chartData/WeekChartDate.dart';
import 'package:diplomaticquarterapp/core/model/my_trakers/chartData/YearMonthlyChartDate.dart';
@@ -14,7 +13,8 @@ class BloodMonthlyPage extends StatelessWidget {
final List> data;
final List diabtecPatientResult;
- const BloodMonthlyPage({Key key, this.data,this.diabtecPatientResult}) : super(key: key);
+ const BloodMonthlyPage({Key key, this.data, this.diabtecPatientResult})
+ : super(key: key);
@override
Widget build(BuildContext context) {
return AppScaffold(
@@ -24,14 +24,14 @@ class BloodMonthlyPage extends StatelessWidget {
width: double.maxFinite,
height: 180,
color: Colors.white,
- child: charts.LineChart(
- data,
+ child: charts.LineChart(data,
//animate: animate,
- defaultRenderer: new charts.LineRendererConfig(includePoints: true)
- ),
+ defaultRenderer:
+ new charts.LineRendererConfig(includePoints: true)),
+ ),
+ SizedBox(
+ height: 12,
),
- SizedBox(height: 12,),
-
Padding(
padding: const EdgeInsets.all(8.0),
child: Texts('Details'),
@@ -51,7 +51,6 @@ class BloodMonthlyPage extends StatelessWidget {
],
),
)
-
],
),
);
@@ -65,7 +64,7 @@ class BloodMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -83,105 +82,116 @@ class BloodMonthlyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Measured', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Measured',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
-
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
],
),
);
- diabtecPatientResult.forEach((diabtec) {
- tableRow.add(
- TableRow(
- children: [
- Container(
- child: Container(
- height: 70,
- padding: EdgeInsets.all(10),
- color: Colors.white,
- child: Center(
- child: Texts(
- '${DateUtil.getMonthDayYearDateFormatted(diabtec.dateChart)} ',
- textAlign: TextAlign.center,
- fontSize: 12,
+ diabtecPatientResult.forEach(
+ (diabtec) {
+ tableRow.add(
+ TableRow(
+ children: [
+ Container(
+ child: Container(
+ height: 70,
+ padding: EdgeInsets.all(10),
+ color: Colors.white,
+ child: Center(
+ child: Texts(
+ '${DateUtil.getMonthDayYearDateFormatted(diabtec.dateChart)} ',
+ textAlign: TextAlign.center,
+ fontSize: 12,
+ ),
),
),
),
- ),
- Container(
- child: Container(
- height: 70,
- padding: EdgeInsets.all(10),
- color: Colors.white,
- child: Center(
- child: Texts(
- '${diabtec.dateChart.hour}:${diabtec.dateChart.minute}',
- textAlign: TextAlign.center,
- fontSize: 12,
+ Container(
+ child: Container(
+ height: 70,
+ padding: EdgeInsets.all(10),
+ color: Colors.white,
+ child: Center(
+ child: Texts(
+ '${diabtec.dateChart.hour}:${diabtec.dateChart.minute}',
+ textAlign: TextAlign.center,
+ fontSize: 12,
+ ),
),
),
),
- ),
- Container(
- child: Container(
- height: 70,
- padding: EdgeInsets.all(10),
- color: Colors.white,
- child: Center(
- child: Texts(
- '${diabtec.measuredDesc}',
- textAlign: TextAlign.center,
- fontSize: 12,
+ Container(
+ child: Container(
+ height: 70,
+ padding: EdgeInsets.all(10),
+ color: Colors.white,
+ child: Center(
+ child: Texts(
+ '${diabtec.measuredDesc}',
+ textAlign: TextAlign.center,
+ fontSize: 12,
+ ),
),
),
),
- ),
- Container(
- child: Container(
- height: 70,
- padding: EdgeInsets.all(10),
- color: Colors.white,
- child: Center(
- child: Texts(
- '${diabtec.resultValue}',
- textAlign: TextAlign.center,
- fontSize: 12,
+ Container(
+ child: Container(
+ height: 70,
+ padding: EdgeInsets.all(10),
+ color: Colors.white,
+ child: Center(
+ child: Texts(
+ '${diabtec.resultValue}',
+ textAlign: TextAlign.center,
+ fontSize: 12,
+ ),
),
),
),
- ),
-
- ],
- ),
- );
- },
+ ],
+ ),
+ );
+ },
);
return tableRow;
}
diff --git a/lib/pages/medical/my_trackers/blood_suger/BloodYeaPage.dart b/lib/pages/medical/my_trackers/blood_suger/BloodYeaPage.dart
index 3bddab88..47f87847 100644
--- a/lib/pages/medical/my_trackers/blood_suger/BloodYeaPage.dart
+++ b/lib/pages/medical/my_trackers/blood_suger/BloodYeaPage.dart
@@ -64,7 +64,7 @@ class BloodYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -82,7 +82,7 @@ class BloodYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -96,7 +96,7 @@ class BloodYearPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
child: Texts(
@@ -107,11 +107,10 @@ class BloodYearPage extends StatelessWidget {
),
height: 40),
),
-
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
diff --git a/lib/pages/medical/my_trackers/blood_suger/blood_sugar_home_page.dart b/lib/pages/medical/my_trackers/blood_suger/blood_sugar_home_page.dart
index 1190b6b6..c8c7fa4a 100644
--- a/lib/pages/medical/my_trackers/blood_suger/blood_sugar_home_page.dart
+++ b/lib/pages/medical/my_trackers/blood_suger/blood_sugar_home_page.dart
@@ -37,7 +37,6 @@ class _BloodSugarHomePageState extends State
_tabController.dispose();
}
-
@override
Widget build(BuildContext context) {
return BaseView(
@@ -78,7 +77,8 @@ class _BloodSugarHomePageState extends State
indicatorSize: TabBarIndicatorSize.label,
indicatorColor: Colors.red[800],
labelColor: Theme.of(context).primaryColor,
- labelPadding: EdgeInsets.only(top: 4.0, left: 5.0, right: 5.0),
+ labelPadding:
+ EdgeInsets.only(top: 4.0, left: 5.0, right: 5.0),
unselectedLabelColor: Colors.grey[800],
tabs: [
Container(
@@ -114,27 +114,37 @@ class _BloodSugarHomePageState extends State
physics: BouncingScrollPhysics(),
controller: _tabController,
children: [
- BloodSugarWeeklyPage(data: model.getBloodWeeklySeries(),diabtecPatientResult: model.weekDiabtecPatientResult,),
- BloodMonthlyPage(data: model.getBloodMonthlyTimeSeriesSales(),diabtecPatientResult: model.monthDiabtecPatientResult,),
- BloodYearPage(data: model.getBloodYearTimeSeriesSales(),diabtecPatientResult: model.yearDiabtecPatientResult,)
+ BloodSugarWeeklyPage(
+ data: model.getBloodWeeklySeries(),
+ diabtecPatientResult: model.weekDiabtecPatientResult,
+ ),
+ BloodMonthlyPage(
+ data: model.getBloodMonthlyTimeSeriesSales(),
+ diabtecPatientResult: model.monthDiabtecPatientResult,
+ ),
+ BloodYearPage(
+ data: model.getBloodYearTimeSeriesSales(),
+ diabtecPatientResult: model.yearDiabtecPatientResult,
+ )
],
),
)
],
),
floatingActionButton: InkWell(
- onTap: (){
+ onTap: () {
Navigator.push(context, FadePage(page: AddBloodSugarPage()));
},
child: Container(
width: 55,
height: 55,
decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: Hexcolor('515B5D')
- ),
+ shape: BoxShape.circle, color: HexColor('515B5D')),
child: Center(
- child: Icon(Icons.add,color: Colors.white,),
+ child: Icon(
+ Icons.add,
+ color: Colors.white,
+ ),
),
),
),
diff --git a/lib/pages/medical/my_trackers/blood_suger/blood_sugar_weekly_page.dart b/lib/pages/medical/my_trackers/blood_suger/blood_sugar_weekly_page.dart
index 6b892162..4b007929 100644
--- a/lib/pages/medical/my_trackers/blood_suger/blood_sugar_weekly_page.dart
+++ b/lib/pages/medical/my_trackers/blood_suger/blood_sugar_weekly_page.dart
@@ -29,8 +29,9 @@ class BloodSugarWeeklyPage extends StatelessWidget {
dateTimeFactory: const charts.LocalDateTimeFactory(),
),
),
- SizedBox(height: 12,),
-
+ SizedBox(
+ height: 12,
+ ),
Padding(
padding: const EdgeInsets.all(8.0),
child: Texts('Details'),
@@ -63,7 +64,7 @@ class BloodSugarWeeklyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -81,50 +82,67 @@ class BloodSugarWeeklyPage extends StatelessWidget {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Time', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Time',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Measured', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Measured',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
),
child: Center(
- child: Texts('Value', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Value',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
),
child: Center(
- child: Texts('Edit', color: Colors.white,fontSize: 15,),
+ child: Texts(
+ 'Edit',
+ color: Colors.white,
+ fontSize: 15,
+ ),
),
height: 40),
),
],
),
);
- diabtecPatientResult.forEach((diabtec) {
+ diabtecPatientResult.forEach(
+ (diabtec) {
tableRow.add(
TableRow(
children: [
diff --git a/lib/pages/medical/vital_sign/vital_sign_details_wideget.dart b/lib/pages/medical/vital_sign/vital_sign_details_wideget.dart
index ad5c6ffb..589284a1 100644
--- a/lib/pages/medical/vital_sign/vital_sign_details_wideget.dart
+++ b/lib/pages/medical/vital_sign/vital_sign_details_wideget.dart
@@ -52,7 +52,7 @@ class _VitalSignDetailsWidgetState extends State {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
),
@@ -69,7 +69,7 @@ class _VitalSignDetailsWidgetState extends State {
Container(
child: Container(
decoration: BoxDecoration(
- color: Hexcolor('#515B5D'),
+ color: HexColor('#515B5D'),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
),
diff --git a/lib/pages/medical/vital_sign/vital_sign_item.dart b/lib/pages/medical/vital_sign/vital_sign_item.dart
index 9586fb25..fb44772d 100644
--- a/lib/pages/medical/vital_sign/vital_sign_item.dart
+++ b/lib/pages/medical/vital_sign/vital_sign_item.dart
@@ -45,16 +45,22 @@ class VitalSignItem extends StatelessWidget {
child: Text(
des,
style: TextStyle(
- fontSize: 1.7 * SizeConfig.textMultiplier,
- color: Hexcolor('#B8382C'),
- fontWeight: FontWeight.bold,),
+ fontSize: 1.7 * SizeConfig.textMultiplier,
+ color: HexColor('#B8382C'),
+ fontWeight: FontWeight.bold,
+ ),
),
),
),
),
Expanded(
flex: 1,
- child: Container(child: Icon(icon,size: 40,),),
+ child: Container(
+ child: Icon(
+ icon,
+ size: 40,
+ ),
+ ),
)
],
),
@@ -65,7 +71,7 @@ class VitalSignItem extends StatelessWidget {
child: Align(
alignment: Alignment.topRight,
child: Container(
- margin: EdgeInsets.only(left: 5,right: 5),
+ margin: EdgeInsets.only(left: 5, right: 5),
child: RichText(
text: TextSpan(
style: TextStyle(color: Colors.black),
@@ -74,7 +80,7 @@ class VitalSignItem extends StatelessWidget {
TextSpan(
text: unit,
style: TextStyle(
- color: Hexcolor('#B8382C'),
+ color: HexColor('#B8382C'),
),
),
]),
diff --git a/lib/pages/paymentService/payment_service.dart b/lib/pages/paymentService/payment_service.dart
index 15a1f699..0d19045b 100644
--- a/lib/pages/paymentService/payment_service.dart
+++ b/lib/pages/paymentService/payment_service.dart
@@ -41,7 +41,7 @@ class PaymentService extends StatelessWidget {
children: [
Texts(
TranslationBase.of(context).payment,
- color: Hexcolor('#B61422'),
+ color: HexColor('#B61422'),
bold: true,
),
Texts(
@@ -73,11 +73,11 @@ class PaymentService extends StatelessWidget {
children: [
Texts(
TranslationBase.of(context).onlineCheckIn,
- color: Hexcolor('#B61422'),
+ color: HexColor('#B61422'),
bold: true,
),
Texts(
- TranslationBase.of(context).appointment,
+ TranslationBase.of(context).appointment,
fontSize: 14,
fontWeight: FontWeight.normal,
),
@@ -115,7 +115,7 @@ class PaymentService extends StatelessWidget {
children: [
Texts(
'My Balances',
- color: Hexcolor('#B61422'),
+ color: HexColor('#B61422'),
bold: true,
),
Texts(
diff --git a/lib/pages/rateAppointment/rate_appointment_clinic.dart b/lib/pages/rateAppointment/rate_appointment_clinic.dart
index 74f134ae..38fdd008 100644
--- a/lib/pages/rateAppointment/rate_appointment_clinic.dart
+++ b/lib/pages/rateAppointment/rate_appointment_clinic.dart
@@ -226,7 +226,7 @@ class _RateAppointmentClinicState extends State {
child: Texts(
'Later',
decoration: TextDecoration.underline,
- color: Hexcolor('#151DFE'),
+ color: HexColor('#151DFE'),
fontSize: 18,
),
)
diff --git a/lib/pages/rateAppointment/rate_appointment_doctor.dart b/lib/pages/rateAppointment/rate_appointment_doctor.dart
index 1583f033..83674906 100644
--- a/lib/pages/rateAppointment/rate_appointment_doctor.dart
+++ b/lib/pages/rateAppointment/rate_appointment_doctor.dart
@@ -177,7 +177,9 @@ class _RateAppointmentDoctorState extends State {
},
),
),
- SizedBox(height: 12,),
+ SizedBox(
+ height: 12,
+ ),
Container(
width: double.infinity,
child: Column(
@@ -222,7 +224,7 @@ class _RateAppointmentDoctorState extends State {
child: Texts(
'Later',
decoration: TextDecoration.underline,
- color: Hexcolor('#151DFE'),
+ color: HexColor('#151DFE'),
fontSize: 18,
),
)
diff --git a/lib/services/robo_search/search_provider.dart b/lib/services/robo_search/search_provider.dart
index 5a192d74..82c32f91 100644
--- a/lib/services/robo_search/search_provider.dart
+++ b/lib/services/robo_search/search_provider.dart
@@ -14,7 +14,7 @@ class SearchProvider with ChangeNotifier {
static var sessionID = new DateTime.now().millisecondsSinceEpoch;
Future getBotPages(request) async {
try {
- request['SessionID'] = sessionID;
+ request['SessionID'] = '123';
await BaseAppClient().post(SEARCH_BOT,
onSuccess: (dynamic response, int statusCode) {
pageData = response;
diff --git a/lib/widgets/buttons/button.dart b/lib/widgets/buttons/button.dart
index f8aff960..b6ae08b1 100644
--- a/lib/widgets/buttons/button.dart
+++ b/lib/widgets/buttons/button.dart
@@ -105,7 +105,7 @@ class _ButtonState extends State