scroll change

merge-requests/125/head
Salman Afzal 4 years ago
parent 50e9dc0980
commit 5f6e9104d0

@ -65,7 +65,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
flex: 2,
child: RoundedContainer(
child: CircularPercentIndicator(
radius: 100.0,
radius: 100,
animation: true,
animationDuration: 1200,
lineWidth: 7.0,
@ -78,7 +78,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
fontSize: SizeConfig.textMultiplier * 4),
AppText("Out-Patients",
fontWeight: FontWeight.normal,
fontSize: SizeConfig.textMultiplier * 1.2,
fontSize: SizeConfig.textMultiplier * 1.1,
color: Colors.grey[800]),
],
),

@ -32,46 +32,61 @@ class PatientProfileWidget extends StatelessWidget {
// ProfileStatusInfoWidget()
// ]);
return Container(
child: Column(children: <Widget>[
Expanded(
flex: 1,
child:
Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[
Column(children: <Widget>[
Container(
padding: EdgeInsets.only(top: 20),
child: ProfileImageWidget(
url:
"https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
name: patient.firstName + ' ' + patient.lastName,
fontsize: 24.0,
color: Colors.black,
),
return CustomScrollView(primary: false, slivers: <Widget>[
SliverList(
delegate: SliverChildListDelegate(
[
Expanded(
flex: 1,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(children: <Widget>[
Container(
padding: EdgeInsets.only(top: 20),
child: ProfileImageWidget(
url:
"https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
name: patient.firstName + ' ' + patient.lastName,
fontsize: 24.0,
color: Colors.black,
),
),
Container(
child: Column(
children: <Widget>[
AppText(
'File No: ' + patient.patientId.toString(),
fontWeight: FontWeight.normal,
fontSize: 16,
),
AppText(
patient.genderDescription.toString() +
', ' +
patient.age,
fontWeight: FontWeight.normal,
fontSize: 16,
)
],
),
)
]),
]),
),
Container(
child: Column(
children: <Widget>[
AppText(
'File No: ' + patient.patientId.toString(),
fontWeight: FontWeight.normal,
fontSize: 16,
),
AppText(
patient.genderDescription.toString() + ', ' + patient.age,
fontWeight: FontWeight.normal,
fontSize: 16,
)
],
),
)
]),
]),
],
),
),
Expanded(
flex: 2,
child: ProfileMedicalInfoWidget(patient: patient),
)
]));
SliverPadding(
padding: const EdgeInsets.fromLTRB(20, 30, 15, 10),
sliver: ProfileMedicalInfoWidget())
]);
// Container(
// child: Column(children: <Widget>[
// Expanded(
// flex: 2,
// child: ,
// )
// ]));
}
}

@ -23,65 +23,61 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
Widget build(BuildContext context) {
// final double contWidth = SizeConfig.realScreenWidth * 0.70;
// final double contHeight = SizeConfig.screenHeight * 0.30;
return CustomScrollView(primary: false, slivers: <Widget>[
SliverPadding(
padding: const EdgeInsets.fromLTRB(20, 30, 15, 10),
sliver: SliverGrid.count(
crossAxisSpacing: 10,
mainAxisSpacing: 20,
crossAxisCount: 2,
childAspectRatio: 1.5,
children: [
PatientProfileButton(
key: key,
patient: patient,
name: 'Vital Sign',
route: VITAL_SIGN_DETAILS,
icon: 'heartbeat.png'),
PatientProfileButton(
key: key,
patient: patient,
route: LAB_ORDERS,
name: 'Lab Order',
icon: 'lab.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PRESCRIPTIONS,
name: 'Prescription',
icon: 'note.png'),
PatientProfileButton(
key: key,
patient: patient,
route: RADIOLOGY,
name: 'Radiology',
icon: 'radiology-1.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PROGRESS_NOTE,
name: 'Progress Notes',
icon: 'heartbeat.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PATIENT_INSURANCE_APPROVALS,
name: 'Insurance Aprovals',
icon: 'lab.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PRESCRIPTIONS,
name: 'Refer Patient',
icon: 'note.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PATIENT_ORDERS,
name: 'Orders',
icon: 'radiology-1.png'),
]))
]);
return SliverGrid.count(
crossAxisSpacing: 10,
mainAxisSpacing: 20,
crossAxisCount: 2,
childAspectRatio: 1.5,
children: [
PatientProfileButton(
key: key,
patient: patient,
name: 'Vital Sign',
route: VITAL_SIGN_DETAILS,
icon: 'heartbeat.png'),
PatientProfileButton(
key: key,
patient: patient,
route: LAB_ORDERS,
name: 'Lab Order',
icon: 'lab.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PRESCRIPTIONS,
name: 'Prescription',
icon: 'note.png'),
PatientProfileButton(
key: key,
patient: patient,
route: RADIOLOGY,
name: 'Radiology',
icon: 'radiology-1.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PROGRESS_NOTE,
name: 'Progress Notes',
icon: 'heartbeat.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PATIENT_INSURANCE_APPROVALS,
name: 'Insurance Aprovals',
icon: 'lab.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PRESCRIPTIONS,
name: 'Refer Patient',
icon: 'note.png'),
PatientProfileButton(
key: key,
patient: patient,
route: PATIENT_ORDERS,
name: 'Orders',
icon: 'radiology-1.png'),
]);
// child: ListView(
// children: <Widget>[
// Padding(

Loading…
Cancel
Save