UI Update
This commit is contained in:
@@ -90,6 +90,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
if (widget.files.isNotEmpty) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: 290.0,
|
height: 290.0,
|
||||||
child: ListView.separated(
|
child: ListView.separated(
|
||||||
@@ -112,5 +113,17 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
return const SizedBox(
|
||||||
|
height: 290.0,
|
||||||
|
child: Center(
|
||||||
|
child: Text(
|
||||||
|
"No Files Available",
|
||||||
|
style: TextStyle(fontSize: 25, color: Colors.grey),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ class _BuildNotesListState extends State<BuildNotesList> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
if (widget.notes.isNotEmpty) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: 290.0,
|
height: 290.0,
|
||||||
child: ListView.separated(
|
child: ListView.separated(
|
||||||
@@ -116,31 +117,22 @@ class _BuildNotesListState extends State<BuildNotesList> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
viewNotePopUp(widget.notes[index].note_name,
|
viewNotePopUp(widget.notes[index].note_name,
|
||||||
"${widget.notes[index].insert_date}:\n${widget.notes[index].note_text}");
|
"${widget.notes[index].insert_date}:\n${widget.notes[index].note_text}");
|
||||||
// showDialog(
|
|
||||||
// context: context,
|
|
||||||
// builder: (context) => AlertDialog(
|
|
||||||
// title: Center(child: Text(widget.notes[index].note_name)),
|
|
||||||
// content: SizedBox(
|
|
||||||
// width: 700,
|
|
||||||
// height: 250,
|
|
||||||
// child: Text(
|
|
||||||
// "${widget.notes[index].insert_date}:\n${widget.notes[index].note_text}",
|
|
||||||
// style: TextStyle(fontSize: 16),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// actions: [
|
|
||||||
// TextButton(
|
|
||||||
// onPressed: () {
|
|
||||||
// Navigator.pop(context);
|
|
||||||
// },
|
|
||||||
// child: const Text("Close"))
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
return const SizedBox(
|
||||||
|
height: 290.0,
|
||||||
|
child: Center(
|
||||||
|
child: Text(
|
||||||
|
"No Notes Available",
|
||||||
|
style: TextStyle(fontSize: 25, color: Colors.grey),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -534,8 +534,6 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
final filesList = snapshot.data!;
|
final filesList = snapshot.data!;
|
||||||
return Flexible(
|
return Flexible(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(10.0),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
//height: 300.0,
|
//height: 300.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
@@ -596,7 +594,6 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return const Center(
|
return const Center(
|
||||||
|
|||||||
@@ -219,8 +219,6 @@ class _PatientNotesState extends State<PatientNotes> {
|
|||||||
final notesList = snapshot.data!;
|
final notesList = snapshot.data!;
|
||||||
return Flexible(
|
return Flexible(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(10.0),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
//height: 300.0,
|
//height: 300.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
@@ -259,7 +257,6 @@ class _PatientNotesState extends State<PatientNotes> {
|
|||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return const Center(
|
return const Center(
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ class _PatientViewState extends State<PatientView> {
|
|||||||
PatientNotes(
|
PatientNotes(
|
||||||
patientIndex: widget.selectedPatient.idpatients,
|
patientIndex: widget.selectedPatient.idpatients,
|
||||||
),
|
),
|
||||||
|
SizedBox(
|
||||||
|
width: 10,
|
||||||
|
),
|
||||||
PatientFiles(
|
PatientFiles(
|
||||||
patientIndex: widget.selectedPatient.idpatients,
|
patientIndex: widget.selectedPatient.idpatients,
|
||||||
selectedPatient: widget.selectedPatient,
|
selectedPatient: widget.selectedPatient,
|
||||||
|
|||||||
Reference in New Issue
Block a user