Fix note and file size and loading indicator
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user