|
|
|
|
@ -989,50 +989,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
DashboardItem(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.qr_code,
|
|
|
|
|
size: 50,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
projectsProvider.isArabic
|
|
|
|
|
? TranslationBase.of(context).reader
|
|
|
|
|
: TranslationBase.of(context).qr,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
projectsProvider.isArabic
|
|
|
|
|
? TranslationBase.of(context).qr
|
|
|
|
|
: TranslationBase.of(context).reader,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// imageName: '1.png',
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).pushNamed(QR_READER);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
DashboardItem(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
@ -1060,44 +1016,88 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.qr_code,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// projectsProvider.isArabic
|
|
|
|
|
// ? TranslationBase.of(context).reader
|
|
|
|
|
// : TranslationBase.of(context).qr,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// projectsProvider.isArabic
|
|
|
|
|
// ? TranslationBase.of(context).qr
|
|
|
|
|
// : TranslationBase.of(context).reader,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// // imageName: '1.png',
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.of(context).pushNamed(QR_READER);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
DashboardItem(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.mail,
|
|
|
|
|
size: 50,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).theDoctor,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).reply,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => DoctorReplyScreen(),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.mail,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).theDoctor,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).reply,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (context) => DoctorReplyScreen(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -1275,7 +1275,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
authProvider.getDocProfiles(docInfo.toJson()).then((res) async {
|
|
|
|
|
changeIsLoading(false);
|
|
|
|
|
sharedPref.setObj(DOCTOR_PROFILE, res['DoctorProfileList'][0]);
|
|
|
|
|
model.getDashboard();
|
|
|
|
|
// model.getDashboard();
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
changeIsLoading(false);
|
|
|
|
|
helpers.showErrorToast(err);
|
|
|
|
|
|