fix buttom alignment accress UI
This commit is contained in:
@@ -60,6 +60,10 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
|
||||
"The appointment has been successfully booked!\n\nAn approval request as been sent to the patient.Once the access request has been approved, you will be able to access the patients profile. ou can check the status of your request in patient queue under the appointment.";
|
||||
// "${fnameController.text} ${lnameController.text} patient profiole has been successfully added!\n";
|
||||
Navigator.pop(context);
|
||||
setState(() {
|
||||
dateController.text = "";
|
||||
timeController.text = "";
|
||||
});
|
||||
successPopUp(message);
|
||||
} else {
|
||||
internetConnectionPopUp();
|
||||
@@ -177,7 +181,7 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
|
||||
LableText: "Time",
|
||||
required: true,
|
||||
),
|
||||
const SizedBox(height: 15.0),
|
||||
const SizedBox(height: 30.0),
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 50,
|
||||
@@ -190,13 +194,13 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
|
||||
.theme
|
||||
.primaryColor(),
|
||||
onTap: () {
|
||||
print("here1");
|
||||
//print("here1");
|
||||
bool filled = isAppointmentFieldsFilled();
|
||||
print("fields filled: $filled");
|
||||
//print("fields filled: $filled");
|
||||
if (filled) {
|
||||
print("here2");
|
||||
//print("here2");
|
||||
submitApointment(index);
|
||||
print("here3");
|
||||
//print("here3");
|
||||
} else {
|
||||
showDialog(
|
||||
context: context,
|
||||
|
||||
@@ -4,11 +4,11 @@ import 'dart:convert';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/components/builders/buildFilesList.dart';
|
||||
import 'package:patient_manager/components/inputsAndButtons/mihFileInput.dart';
|
||||
import 'package:patient_manager/components/medCertInput.dart';
|
||||
import 'package:patient_manager/components/mihLoadingCircle.dart';
|
||||
import 'package:patient_manager/components/popUpMessages/mihErrorMessage.dart';
|
||||
import 'package:patient_manager/components/popUpMessages/mihSuccessMessage.dart';
|
||||
import 'package:patient_manager/components/inputsAndButtons/mihTextInput.dart';
|
||||
import 'package:patient_manager/components/inputsAndButtons/mihButton.dart';
|
||||
import 'package:patient_manager/components/prescipInput.dart';
|
||||
import 'package:patient_manager/env/env.dart';
|
||||
@@ -431,15 +431,12 @@ class _PatientFilesState extends State<PatientFiles> {
|
||||
const SizedBox(height: 25.0),
|
||||
SizedBox(
|
||||
width: 700,
|
||||
height: 50,
|
||||
child: MIHButton(
|
||||
buttonText: "Select File",
|
||||
buttonColor: MzanziInnovationHub.of(context)!
|
||||
.theme
|
||||
.secondaryColor(),
|
||||
textColor:
|
||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||
onTap: () async {
|
||||
child: MIHFileField(
|
||||
controller: selectedFileController,
|
||||
hintText: "Select File",
|
||||
editable: false,
|
||||
required: true,
|
||||
onPressed: () async {
|
||||
FilePickerResult? result =
|
||||
await FilePicker.platform.pickFiles(
|
||||
type: FileType.custom,
|
||||
@@ -457,12 +454,7 @@ class _PatientFilesState extends State<PatientFiles> {
|
||||
},
|
||||
),
|
||||
),
|
||||
MIHTextField(
|
||||
controller: selectedFileController,
|
||||
hintText: "Selected FIle",
|
||||
editable: false,
|
||||
required: true,
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 50,
|
||||
|
||||
@@ -154,6 +154,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 50,
|
||||
|
||||
Reference in New Issue
Block a user