fix positioning from profile picture and add & comment out calender tile

This commit is contained in:
2024-11-01 12:00:09 +02:00
parent 8adfed3359
commit 18f35a176e

View File

@@ -140,6 +140,22 @@ class _MIHHomeState extends State<MIHHome> {
p: getPrim(), p: getPrim(),
s: getSec(), s: getSec(),
)); ));
// tileList.add(MIHTile(
// onTap: () {
// Navigator.of(context).pushNamed(
// '/access-review',
// arguments: widget.signedInUser,
// );
// },
// tileName: "Appointments",
// tileIcon: Icon(
// Icons.calendar_month,
// color: getSec(),
// size: 200,
// ),
// p: getPrim(),
// s: getSec(),
// ));
tileList.add(MIHTile( tileList.add(MIHTile(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -147,7 +163,7 @@ class _MIHHomeState extends State<MIHHome> {
arguments: widget.signedInUser, arguments: widget.signedInUser,
); );
}, },
tileName: "Access Review", tileName: "Access",
tileIcon: Icon( tileIcon: Icon(
Icons.check_box_outlined, Icons.check_box_outlined,
color: getSec(), color: getSec(),
@@ -156,7 +172,6 @@ class _MIHHomeState extends State<MIHHome> {
p: getPrim(), p: getPrim(),
s: getSec(), s: getSec(),
)); ));
tileList.add(MIHTile( tileList.add(MIHTile(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -176,27 +191,6 @@ class _MIHHomeState extends State<MIHHome> {
} }
void setAppsBusiness(List<MIHTile> tileList) { void setAppsBusiness(List<MIHTile> tileList) {
// tileList.add(MIHTile(
// onTap: () {
// Navigator.of(context).pushNamed(
// '/business-profile',
// arguments: BusinessArguments(
// widget.signedInUser,
// widget.businessUser,
// widget.business,
// ),
// );
// },
// tileName: "Manage Business",
// tileIcon: Icon(
// Icons.business,
// color: getSec(),
// size: 200,
// ),
// p: getPrim(),
// s: getSec(),
// ));
//if (widget.businessUser!.access == "Full") {
tileList.add(MIHTile( tileList.add(MIHTile(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -217,8 +211,22 @@ class _MIHHomeState extends State<MIHHome> {
p: getPrim(), p: getPrim(),
s: getSec(), s: getSec(),
)); ));
//} // tileList.add(MIHTile(
if (widget.business!.type == "Doctors Office") { // onTap: () {
// Navigator.of(context).pushNamed(
// '/access-review',
// arguments: widget.signedInUser,
// );
// },
// tileName: "Access",
// tileIcon: Icon(
// Icons.check_box_outlined,
// color: getSec(),
// size: 200,
// ),
// p: getPrim(),
// s: getSec(),
// ));
tileList.add(MIHTile( tileList.add(MIHTile(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -240,7 +248,6 @@ class _MIHHomeState extends State<MIHHome> {
s: getSec(), s: getSec(),
)); ));
} }
}
void setAppsDev(List<MIHTile> tileList) { void setAppsDev(List<MIHTile> tileList) {
if (AppEnviroment.getEnv() == "Dev") { if (AppEnviroment.getEnv() == "Dev") {
@@ -560,7 +567,9 @@ class _MIHHomeState extends State<MIHHome> {
Widget getActionButton() { Widget getActionButton() {
return Builder(builder: (context) { return Builder(builder: (context) {
return MIHAction( return MIHAction(
icon: MIHProfilePicture( icon: Padding(
padding: const EdgeInsets.only(left: 5.0),
child: MIHProfilePicture(
profilePictureFile: widget.propicFile, profilePictureFile: widget.propicFile,
proPicController: proPicController, proPicController: proPicController,
proPic: null, proPic: null,
@@ -570,6 +579,7 @@ class _MIHHomeState extends State<MIHHome> {
editable: false, editable: false,
onChange: (newProPic) {}, onChange: (newProPic) {},
), ),
),
// const Icon(Icons.apps), // const Icon(Icons.apps),
iconSize: 45, iconSize: 45,
onTap: () { onTap: () {