update loading screen title & add notes list to patient view screen

This commit is contained in:
2024-04-13 14:06:52 +02:00
parent 7028d63b2a
commit 16fcd2783f
7 changed files with 181 additions and 11 deletions

View File

@@ -6,7 +6,6 @@ import 'package:patient_manager/components/buildPatientList.dart';
import 'package:patient_manager/components/myAppBar.dart';
import 'package:patient_manager/components/myAppDrawer.dart';
import 'package:http/http.dart' as http;
import 'package:mysql_client/mysql_client.dart';
import 'package:patient_manager/components/mySearchInput.dart';
import 'package:patient_manager/objects/patients.dart';
@@ -37,8 +36,6 @@ class PatientManager extends StatefulWidget {
class _PatientManagerState extends State<PatientManager> {
TextEditingController searchController = TextEditingController();
String endpoint = "http://localhost:80/patients/user/";
late MySQLConnection conn;
String resultsofDB = "";
late Future<List<Patient>> futurePatients;
String searchString = "";

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:patient_manager/components/PatientDetails.dart';
import 'package:patient_manager/components/myAppBar.dart';
import 'package:patient_manager/components/patientNotes.dart';
import 'package:patient_manager/objects/patients.dart';
class PatientView extends StatefulWidget {
@@ -21,12 +22,22 @@ class _PatientViewState extends State<PatientView> {
child: Column(
children: [
PatientDetails(selectedPatient: widget.selectedPatient),
const SizedBox(
height: 10.0,
),
Row(
children: [
PatientNotes(
patientIndex: widget.selectedPatient.idpatients,
),
PatientNotes(
patientIndex: widget.selectedPatient.idpatients,
)
],
)
],
),
),
);
// Center(
// child: Text(widget.selectedPatient.first_name),
// ),
}
}