hot fixes in PatientReferralScreen

merge-requests/628/head
Mohammad Aljammal 5 years ago
parent 88b8454afe
commit c6ac829813

@ -655,84 +655,6 @@ class _HomeScreenState extends State<HomeScreen> {
); );
}, },
), ),
// HomePageCard(
// color: Colors.red[800],
// margin: EdgeInsets.all(5),
// child: Column(
// mainAxisAlignment:
// MainAxisAlignment.center,
// crossAxisAlignment:
// CrossAxisAlignment.start,
// children: <Widget>[
// Padding(
// padding: EdgeInsets.only(
// top: 10, left: 10, right: 0),
// child: Icon(
// DoctorApp.discharge_patients,
// size: 35,
// color: Colors.white,
// )),
// Container(
// padding: EdgeInsets.all(10),
// child: AppText(
// 'Discharged Patients',
// color: Colors.white,
// textAlign: TextAlign.start,
// fontSize: 15,
// ))
// ],
// ),
// hasBorder: false,
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) =>
// DischargedPatient(),
// // MyReferredPatient(),
// ),
// );
// },
// ),
// HomePageCard(
// color: Colors.grey[300],
// margin: EdgeInsets.all(5),
// child: Column(
// mainAxisAlignment:
// MainAxisAlignment.center,
// crossAxisAlignment:
// CrossAxisAlignment.start,
// children: <Widget>[
// Padding(
// padding: EdgeInsets.only(
// top: 10, left: 10, right: 0),
// child: Icon(
// DoctorApp.referral_discharge,
// size: 35,
// color: Colors.black,
// )),
// Container(
// padding: EdgeInsets.all(10),
// child: AppText(
// 'Referral Discharged',
// color: Colors.black,
// textAlign: TextAlign.start,
// fontSize: 15,
// ))
// ],
// ),
// hasBorder: false,
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) =>
// ReferralDischargedPatientPage(),
// // MyReferredPatient(),
// ),
// );
// },
// ),
HomePageCard( HomePageCard(
color: Color(0xffD02127), color: Color(0xffD02127),
margin: EdgeInsets.all(5), margin: EdgeInsets.all(5),

@ -103,10 +103,10 @@ class _DischargedPatientState extends State<DischargedPatient> {
}), }),
])), ])),
SizedBox(height: 5,), SizedBox(height: 5,),
Expanded( Expanded(child: SingleChildScrollView(
child: ListView.builder( child: Column(
itemCount: model.filterData.length, children: [
itemBuilder: (context,index)=>InkWell( ...List.generate(model.filterData.length, (index) => InkWell(
onTap: () { onTap: () {
Navigator.of(context) Navigator.of(context)
.pushNamed( .pushNamed(
@ -330,8 +330,9 @@ class _DischargedPatientState extends State<DischargedPatient> {
), ),
), ),
)), )),
), ],
),
))
], ],
), ),
), ),

@ -25,7 +25,7 @@ class _ReferralDischargedPatientPageState extends State<ReferralDischargedPatien
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
appBarTitle: 'Referral Discharged ', appBarTitle: 'Referral Discharged ',
backgroundColor: Colors.grey[200], backgroundColor: Colors.grey[200],
isShowAppBar: true, isShowAppBar: false,
baseViewModel: model, baseViewModel: model,
body: model.myDischargeReferralPatient.isEmpty?Center( body: model.myDischargeReferralPatient.isEmpty?Center(
child: Column( child: Column(

@ -9,7 +9,7 @@ import 'package:doctor_app_flutter/widgets/shared/text_fields/text_fields_utils.
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../../DischargedPatientPage.dart'; import '../../ReferralDischargedPatientPage.dart';
import 'my-referral-inpatient-screen.dart'; import 'my-referral-inpatient-screen.dart';
class PatientReferralScreen extends StatefulWidget { class PatientReferralScreen extends StatefulWidget {
@ -171,7 +171,7 @@ class _PatientReferralScreen extends State<PatientReferralScreen> with SingleTic
children: <Widget>[ children: <Widget>[
ReferredPatientScreen(), ReferredPatientScreen(),
MyReferralInPatientScreen(), MyReferralInPatientScreen(),
DischargedPatient() ReferralDischargedPatientPage()
// MyReferredPatient(), // MyReferredPatient(),
], ],
), ),

Loading…
Cancel
Save