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, future: futueFiles,
builder: (context, snapshot) { builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) { if (snapshot.connectionState == ConnectionState.waiting) {
return const CircularProgressIndicator(); return const Center(
child: CircularProgressIndicator(),
);
} else if (snapshot.hasData) { } else if (snapshot.hasData) {
final filesList = snapshot.data!; final filesList = snapshot.data!;
return Container( return Container(

View File

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

View File

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

View File

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