You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
5.2 KiB
Dart
147 lines
5.2 KiB
Dart
4 years ago
|
import 'dart:math';
|
||
|
|
||
4 years ago
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_home_page.dart';
|
||
4 years ago
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
|
||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||
|
import 'package:diplomaticquarterapp/widgets/others/sliver_app_bar_delegate.dart';
|
||
4 years ago
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
||
4 years ago
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
4 years ago
|
import 'doctor/doctor_home_page.dart';
|
||
4 years ago
|
|
||
4 years ago
|
class MedicalProfilePage extends StatefulWidget {
|
||
|
@override
|
||
|
_MedicalProfilePageState createState() => _MedicalProfilePageState();
|
||
4 years ago
|
}
|
||
|
|
||
4 years ago
|
class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
||
4 years ago
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return AppScaffold(
|
||
|
body: CustomScrollView(
|
||
|
physics: BouncingScrollPhysics(),
|
||
|
key: PageStorageKey("medical"),
|
||
|
slivers: <Widget>[
|
||
|
SliverPersistentHeader(
|
||
|
delegate: SliverAppBarDelegate(
|
||
|
maxHeight: 200.0,
|
||
|
minHeight: 200.0,
|
||
|
child: Container(
|
||
|
width: double.infinity,
|
||
|
height: 200,
|
||
|
color: Colors.grey,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
SliverPersistentHeader(
|
||
|
delegate: SliverAppBarDelegate(
|
||
|
maxHeight: double.maxFinite,
|
||
|
minHeight: double.maxFinite,
|
||
|
child: Padding(
|
||
|
padding: EdgeInsets.symmetric(vertical: 12.0),
|
||
|
child: Column(
|
||
|
children: <Widget>[
|
||
|
Row(
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
4 years ago
|
child: InkWell(
|
||
|
onTap: (){
|
||
|
Navigator.push(context, FadePage(page: DoctorHomePage()));
|
||
|
},
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'My Doctor',
|
||
|
imagePath: 'doctor_icon.png',
|
||
|
subTitle: 'List',
|
||
|
),
|
||
4 years ago
|
),
|
||
|
),
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
4 years ago
|
child: InkWell(
|
||
|
onTap: (){
|
||
|
|
||
|
},
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Lab',
|
||
|
imagePath: 'lab_result_icon.png',
|
||
|
subTitle: 'Result',
|
||
|
),
|
||
4 years ago
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
Row(
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Radiology',
|
||
|
imagePath: 'radiology_icon.png',
|
||
|
subTitle: 'Service',
|
||
|
),
|
||
|
),
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
4 years ago
|
child: InkWell(
|
||
|
onTap: (){
|
||
|
Navigator.push(context, FadePage(page: HomePrescriptionsPage()));
|
||
|
|
||
|
},
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Medicines',
|
||
|
imagePath: 'prescription_icon.png',
|
||
|
subTitle: 'Prescriptions',
|
||
|
),
|
||
4 years ago
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
Row(
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Insurance',
|
||
|
imagePath: 'insurance_card_icon.png',
|
||
|
subTitle: 'Card',
|
||
|
),
|
||
|
),
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Insurance',
|
||
|
imagePath: 'insurance_approvals_icon.png',
|
||
|
subTitle: 'Approvals',
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
Row(
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: MedicalProfileItem(
|
||
|
title: 'Medical',
|
||
|
imagePath: 'medical_history_icon.png',
|
||
|
subTitle: 'Reports',
|
||
|
),
|
||
|
),
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: Container(),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|