Patient Details Component Added
This commit is contained in:
@@ -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),
|
||||
// ),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user