UI Update

This commit is contained in:
2024-07-05 18:56:36 +02:00
parent f46711de4a
commit e09ca04e8a
3 changed files with 139 additions and 140 deletions

View File

@@ -50,152 +50,151 @@ class _PatientDetailsState extends State<PatientDetails> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: const EdgeInsets.all(20), padding: const EdgeInsets.only(left: 20, right: 20, bottom: 10),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all(color: Colors.blueAccent, width: 3.0), border: Border.all(color: Colors.blueAccent, width: 3.0),
), ),
//constraints: const BoxConstraints.expand(height: 250.0), //constraints: const BoxConstraints.expand(height: 250.0),
child: SelectionArea( child: Column(
child: Column( children: [
children: [ Row(
Row( mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center, //crossAxisAlignment: ,
children: [ children: [
const Text( const Text(
"Patient Details", "Patient Details",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.blueAccent,
),
),
IconButton(
icon: const Icon(Icons.edit),
alignment: Alignment.topRight,
color: Colors.blueAccent, color: Colors.blueAccent,
onPressed: () {
Navigator.of(context).pushNamed(
'/patient-manager/patient/edit',
arguments: widget.selectedPatient);
},
)
],
),
const Divider(color: Colors.blueAccent),
const SizedBox(height: 10),
Column(
children: [
Row(
children: [
Expanded(
child: MyTextField(
controller: idController,
hintText: "ID No.",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: fnameController,
hintText: "Name",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: lnameController,
hintText: "Surname",
editable: false,
required: false),
),
],
), ),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: MyTextField(
controller: cellController,
hintText: "Cell No.",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: emailController,
hintText: "Email",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: addressController,
hintText: "Address",
editable: false,
required: false),
),
],
),
],
),
const SizedBox(height: 10),
const Text(
"Medical Aid Details",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: Colors.blueAccent,
), ),
IconButton(
icon: const Icon(Icons.edit),
alignment: Alignment.topRight,
color: Colors.blueAccent,
onPressed: () {
Navigator.of(context).pushNamed(
'/patient-manager/patient/edit',
arguments: widget.selectedPatient);
},
)
],
),
const Divider(color: Colors.blueAccent),
const SizedBox(height: 10),
Column(
children: [
Row(
children: [
Expanded(
child: MyTextField(
controller: idController,
hintText: "ID No.",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: fnameController,
hintText: "Name",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: lnameController,
hintText: "Surname",
editable: false,
required: false),
),
],
),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: MyTextField(
controller: cellController,
hintText: "Cell No.",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: emailController,
hintText: "Email",
editable: false,
required: false),
),
Expanded(
child: MyTextField(
controller: addressController,
hintText: "Address",
editable: false,
required: false),
),
],
),
],
),
const SizedBox(height: 10),
const Text(
"Medical Aid Details",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: Colors.blueAccent,
), ),
const Divider(color: Colors.blueAccent), ),
const SizedBox(height: 10), const Divider(color: Colors.blueAccent),
Column( const SizedBox(height: 10),
children: [ Column(
Row( children: [
children: [ Row(
Expanded( children: [
child: MyTextField( Expanded(
controller: medNoController, child: MyTextField(
hintText: "No.", controller: medNoController,
editable: false, hintText: "No.",
required: false), editable: false,
), required: false),
Expanded( ),
child: MyTextField( Expanded(
controller: medNameController, child: MyTextField(
hintText: "Name", controller: medNameController,
editable: false, hintText: "Name",
required: false), editable: false,
), required: false),
Expanded( ),
child: MyTextField( Expanded(
controller: medSchemeController, child: MyTextField(
hintText: "Scheme", controller: medSchemeController,
editable: false, hintText: "Scheme",
required: false), editable: false,
), required: false),
// PatientDetailItem( ),
// category: "No. ", // PatientDetailItem(
// value: widget.selectedPatient.medical_aid_no, // category: "No. ",
// ), // value: widget.selectedPatient.medical_aid_no,
// PatientDetailItem( // ),
// category: "Name ", // PatientDetailItem(
// value: widget.selectedPatient.medical_aid_name, // category: "Name ",
// ), // value: widget.selectedPatient.medical_aid_name,
// PatientDetailItem( // ),
// category: "Scheme ", // PatientDetailItem(
// value: widget.selectedPatient.medical_aid_scheme, // category: "Scheme ",
// ), // value: widget.selectedPatient.medical_aid_scheme,
], // ),
), ],
], ),
) ],
], )
), ],
), ),
); );
} }

View File

@@ -553,7 +553,7 @@ class _PatientFilesState extends State<PatientFiles> {
"Files", "Files",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.blueAccent, color: Colors.blueAccent,
), ),
@@ -589,7 +589,7 @@ class _PatientFilesState extends State<PatientFiles> {
), ),
const Padding( const Padding(
padding: EdgeInsets.symmetric(horizontal: 20.0), padding: EdgeInsets.symmetric(horizontal: 20.0),
child: Divider(), child: Divider(color: Colors.blueAccent),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
BuildFilesList(files: filesList), BuildFilesList(files: filesList),

View File

@@ -238,7 +238,7 @@ class _PatientNotesState extends State<PatientNotes> {
"Notes", "Notes",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.blueAccent), color: Colors.blueAccent),
), ),
@@ -252,7 +252,7 @@ class _PatientNotesState extends State<PatientNotes> {
), ),
const Padding( const Padding(
padding: EdgeInsets.symmetric(horizontal: 20.0), padding: EdgeInsets.symmetric(horizontal: 20.0),
child: Divider(), child: Divider(color: Colors.blueAccent),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
BuildNotesList(notes: notesList), BuildNotesList(notes: notesList),