migrate to mih_package_tooklit
This commit is contained in:
@@ -103,6 +103,7 @@ class _PatManagerState extends State<PatManager> {
|
||||
context.read<PatientManagerProvider>();
|
||||
return MihPackageAction(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
iconColor: MihColors.secondary(),
|
||||
iconSize: 35,
|
||||
onTap: () {
|
||||
patientManagerProvider.setPatientProfileIndex(0);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:mih_package_toolkit/mih_package_toolkit.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_objects/medicine.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class BuildMedicinesList extends StatefulWidget {
|
||||
final TextEditingController contoller;
|
||||
@@ -34,7 +33,7 @@ class _BuildMedicinesListState extends State<BuildMedicinesList> {
|
||||
separatorBuilder: (BuildContext context, int index) {
|
||||
return Divider(
|
||||
color: MihColors.secondary(
|
||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||
),
|
||||
);
|
||||
},
|
||||
itemCount: widget.medicines.length,
|
||||
@@ -45,14 +44,14 @@ class _BuildMedicinesListState extends State<BuildMedicinesList> {
|
||||
widget.medicines[index].name,
|
||||
style: TextStyle(
|
||||
color: MihColors.secondary(
|
||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||
),
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
"${widget.medicines[index].unit} - ${widget.medicines[index].form}",
|
||||
style: TextStyle(
|
||||
color: MihColors.secondary(
|
||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||
),
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
@@ -65,7 +64,7 @@ class _BuildMedicinesListState extends State<BuildMedicinesList> {
|
||||
trailing: Icon(
|
||||
Icons.arrow_forward,
|
||||
color: MihColors.secondary(
|
||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ class _PatientProfileTileState extends State<PatientProfileTile> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MihPackageTile(
|
||||
// authenticateUser: true,
|
||||
authenticateUser: true,
|
||||
onTap: () async {
|
||||
PatientManagerProvider patManProvider =
|
||||
context.read<PatientManagerProvider>();
|
||||
|
||||
@@ -125,6 +125,7 @@ class _PatientProfileState extends State<PatientProfile> {
|
||||
context.read<PatientManagerProvider>();
|
||||
return MihPackageAction(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
iconColor: MihColors.secondary(),
|
||||
iconSize: 35,
|
||||
onTap: () {
|
||||
if (!patientManagerProvider.personalMode) {
|
||||
|
||||
@@ -39,6 +39,7 @@ class _PatientSetUpState extends State<PatientSetUp> {
|
||||
MihPackageAction getAction() {
|
||||
return MihPackageAction(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
iconColor: MihColors.secondary(),
|
||||
iconSize: 35,
|
||||
onTap: () {
|
||||
context.goNamed(
|
||||
|
||||
Reference in New Issue
Block a user