|
|
|
|
@ -31,6 +31,7 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
|
|
|
|
|
TabController _tabController_new;
|
|
|
|
|
List<ImagesInfo> imagesInfo = List();
|
|
|
|
|
int _currentPage = 0;
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
@ -46,7 +47,7 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
imagesInfo.add(ImagesInfo(
|
|
|
|
|
imageEn: 'https://hmgwebservices.com/Images/MobileApp/imges-info/medical-reorts/en/0.png', imageAr: 'https://hmgwebservices.com/Images/MobileApp/imges-info/medical-reorts/ar/0.png'));
|
|
|
|
|
imagesInfo.add(ImagesInfo(
|
|
|
|
|
@ -55,7 +56,7 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
|
|
|
|
|
imageEn: 'https://hmgwebservices.com/Images/MobileApp/imges-info/medical-reorts/en/2.png', imageAr: 'https://hmgwebservices.com/Images/MobileApp/imges-info/medical-reorts/ar/2.png'));
|
|
|
|
|
return BaseView<ReportsViewModel>(
|
|
|
|
|
onModelReady: (model) {
|
|
|
|
|
model.getReports();
|
|
|
|
|
model.getReports(projectViewModel.isArabic ? 1 : 2);
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
@ -156,11 +157,13 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: InPatientMedicalReports(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: InPatientMedicalReports(
|
|
|
|
|
admissionMedicalReport: admissionMedicalReport,
|
|
|
|
|
)));
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
// height: 100.0,
|
|
|
|
|
@ -259,7 +262,7 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
|
|
|
|
|
page: MedicalReports(),
|
|
|
|
|
),
|
|
|
|
|
).then((value) {
|
|
|
|
|
model.getReports();
|
|
|
|
|
model.getReports(projectViewModel.isArabic ? 1 : 2);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|