Patient Details Component Added
This commit is contained in:
parent
d9e2afd571
commit
bd00ad029d
4 changed files with 180 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/components/PatientDetails.dart';
|
||||
import 'package:patient_manager/components/myAppBar.dart';
|
||||
import 'package:patient_manager/objects/patients.dart';
|
||||
|
||||
|
|
@ -15,9 +16,17 @@ class _PatientViewState extends State<PatientView> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: const MyAppBar(barTitle: "Patient View"),
|
||||
body: Center(
|
||||
child: Text(widget.selectedPatient.first_name),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
|
||||
child: Column(
|
||||
children: [
|
||||
PatientDetails(selectedPatient: widget.selectedPatient),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
// Center(
|
||||
// child: Text(widget.selectedPatient.first_name),
|
||||
// ),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue