Files
mih-project/Frontend/patient_manager/lib/pages/patientView.dart

58 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:patient_manager/components/patientDetails.dart';
import 'package:patient_manager/components/myAppBar.dart';
import 'package:patient_manager/components/patientFiles.dart';
import 'package:patient_manager/components/patientNotes.dart';
import 'package:patient_manager/objects/patients.dart';
class PatientView extends StatefulWidget {
final Patient selectedPatient;
const PatientView({super.key, required this.selectedPatient});
@override
State<PatientView> createState() => _PatientViewState();
}
class _PatientViewState extends State<PatientView> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: const MyAppBar(barTitle: "Patient View"),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
child: Column(
children: [
PatientDetails(selectedPatient: widget.selectedPatient),
const SizedBox(
height: 10.0,
),
Wrap(
spacing: 10.0,
runSpacing: 10.0,
direction: Axis.horizontal,
alignment: WrapAlignment.center,
children: [
SizedBox(
width: 725,
child: PatientNotes(
patientIndex: widget.selectedPatient.idpatients,
),
),
SizedBox(
width: 725,
child: PatientFiles(
patientIndex: widget.selectedPatient.idpatients,
selectedPatient: widget.selectedPatient,
),
)
],
)
],
),
),
),
);
}
}