forked from yaso_meth/mih-project
Fix note and file size and loading indicator
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -168,7 +168,7 @@ class _PatientManagerState extends State<PatientManager> {
|
||||
width: 3.0),
|
||||
),
|
||||
child: const Center(
|
||||
child: Center(child: CircularProgressIndicator()),
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user