rename files and widgets from my... to mih...

This commit is contained in:
2024-08-13 10:08:40 +02:00
parent b9a8adb59f
commit 7a6ba04220
30 changed files with 487 additions and 243 deletions

View File

@@ -3,11 +3,11 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/myDropdownInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihDropdownInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/patients.dart';
@@ -163,7 +163,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -259,7 +259,7 @@ class _EditPatientState extends State<EditPatient> {
SizedBox(
width: 300,
height: 100,
child: MyButton(
child: MIHButton(
onTap: deletePatientApiCall,
buttonText: "Delete",
buttonColor: MzanziInnovationHub.of(context)!
@@ -299,7 +299,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -382,7 +382,7 @@ class _EditPatientState extends State<EditPatient> {
],
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: idController,
hintText: "13 digit ID Number or Passport",
editable: false,
@@ -390,7 +390,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "First Name",
editable: false,
@@ -398,7 +398,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Last Name",
editable: false,
@@ -406,7 +406,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: cellController,
hintText: "Cell Number",
editable: true,
@@ -414,7 +414,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: emailController,
hintText: "Email",
editable: false,
@@ -422,7 +422,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: addressController,
hintText: "Address",
editable: true,
@@ -440,7 +440,7 @@ class _EditPatientState extends State<EditPatient> {
),
),
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medAidController,
hintText: "Medical Aid",
onSelect: (selected) {
@@ -463,7 +463,7 @@ class _EditPatientState extends State<EditPatient> {
child: Column(
children: [
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medMainMemController,
hintText: "Main Member.",
editable: medRequired,
@@ -471,28 +471,28 @@ class _EditPatientState extends State<EditPatient> {
dropdownOptions: const ["Yes", "No"],
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNoController,
hintText: "Medical Aid No.",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medAidCodeController,
hintText: "Medical Aid Code",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNameController,
hintText: "Medical Aid Name",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medSchemeController,
hintText: "Medical Aid Scheme",
editable: medRequired,
@@ -506,7 +506,7 @@ class _EditPatientState extends State<EditPatient> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
onTap: () {
submitForm();
},
@@ -537,7 +537,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
}