Fix note and file size and loading indicator

This commit is contained in:
2024-07-19 13:46:10 +02:00
parent a65081ef7f
commit b13d8a96cf
4 changed files with 9 additions and 5 deletions

View File

@@ -555,7 +555,9 @@ class _PatientFilesState extends State<PatientFiles> {
future: futueFiles,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const CircularProgressIndicator();
return const Center(
child: CircularProgressIndicator(),
);
} else if (snapshot.hasData) {
final filesList = snapshot.data!;
return Container(

View File

@@ -224,7 +224,9 @@ class _PatientNotesState extends State<PatientNotes> {
future: futueNotes,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const CircularProgressIndicator();
return const Center(
child: CircularProgressIndicator(),
);
} else if (snapshot.hasData) {
final notesList = snapshot.data!;
return Container(

View File

@@ -168,7 +168,7 @@ class _PatientManagerState extends State<PatientManager> {
width: 3.0),
),
child: const Center(
child: Center(child: CircularProgressIndicator()),
child: CircularProgressIndicator(),
),
),
);

View File

@@ -34,13 +34,13 @@ class _PatientViewState extends State<PatientView> {
alignment: WrapAlignment.center,
children: [
SizedBox(
width: 725,
width: 650,
child: PatientNotes(
patientIndex: widget.selectedPatient.idpatients,
),
),
SizedBox(
width: 725,
width: 650,
child: PatientFiles(
patientIndex: widget.selectedPatient.idpatients,
selectedPatient: widget.selectedPatient,