UI Update
This commit is contained in:
@@ -90,6 +90,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (widget.files.isNotEmpty) {
|
||||
return SizedBox(
|
||||
height: 290.0,
|
||||
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
|
||||
Widget build(BuildContext context) {
|
||||
if (widget.notes.isNotEmpty) {
|
||||
return SizedBox(
|
||||
height: 290.0,
|
||||
child: ListView.separated(
|
||||
@@ -116,31 +117,22 @@ class _BuildNotesListState extends State<BuildNotesList> {
|
||||
onTap: () {
|
||||
viewNotePopUp(widget.notes[index].note_name,
|
||||
"${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!;
|
||||
return Flexible(
|
||||
flex: 1,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Container(
|
||||
//height: 300.0,
|
||||
decoration: BoxDecoration(
|
||||
@@ -596,7 +594,6 @@ class _PatientFilesState extends State<PatientFiles> {
|
||||
]),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return const Center(
|
||||
|
||||
@@ -219,8 +219,6 @@ class _PatientNotesState extends State<PatientNotes> {
|
||||
final notesList = snapshot.data!;
|
||||
return Flexible(
|
||||
flex: 1,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Container(
|
||||
//height: 300.0,
|
||||
decoration: BoxDecoration(
|
||||
@@ -259,7 +257,6 @@ class _PatientNotesState extends State<PatientNotes> {
|
||||
]),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return const Center(
|
||||
|
||||
@@ -32,6 +32,9 @@ class _PatientViewState extends State<PatientView> {
|
||||
PatientNotes(
|
||||
patientIndex: widget.selectedPatient.idpatients,
|
||||
),
|
||||
SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
PatientFiles(
|
||||
patientIndex: widget.selectedPatient.idpatients,
|
||||
selectedPatient: widget.selectedPatient,
|
||||
|
||||
Reference in New Issue
Block a user