fix positioning from profile picture and add & comment out calender tile
This commit is contained in:
@@ -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,29 +211,42 @@ class _MIHHomeState extends State<MIHHome> {
|
|||||||
p: getPrim(),
|
p: getPrim(),
|
||||||
s: getSec(),
|
s: getSec(),
|
||||||
));
|
));
|
||||||
//}
|
// tileList.add(MIHTile(
|
||||||
if (widget.business!.type == "Doctors Office") {
|
// onTap: () {
|
||||||
tileList.add(MIHTile(
|
// Navigator.of(context).pushNamed(
|
||||||
onTap: () {
|
// '/access-review',
|
||||||
Navigator.of(context).pushNamed(
|
// arguments: widget.signedInUser,
|
||||||
'/patient-manager',
|
// );
|
||||||
arguments: BusinessArguments(
|
// },
|
||||||
widget.signedInUser,
|
// tileName: "Access",
|
||||||
widget.businessUser,
|
// tileIcon: Icon(
|
||||||
widget.business,
|
// Icons.check_box_outlined,
|
||||||
),
|
// color: getSec(),
|
||||||
);
|
// size: 200,
|
||||||
},
|
// ),
|
||||||
tileName: "Manage Patient",
|
// p: getPrim(),
|
||||||
tileIcon: Icon(
|
// s: getSec(),
|
||||||
Icons.medication,
|
// ));
|
||||||
color: getSec(),
|
tileList.add(MIHTile(
|
||||||
size: 200,
|
onTap: () {
|
||||||
),
|
Navigator.of(context).pushNamed(
|
||||||
p: getPrim(),
|
'/patient-manager',
|
||||||
s: getSec(),
|
arguments: BusinessArguments(
|
||||||
));
|
widget.signedInUser,
|
||||||
}
|
widget.businessUser,
|
||||||
|
widget.business,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
tileName: "Manage Patient",
|
||||||
|
tileIcon: Icon(
|
||||||
|
Icons.medication,
|
||||||
|
color: getSec(),
|
||||||
|
size: 200,
|
||||||
|
),
|
||||||
|
p: getPrim(),
|
||||||
|
s: getSec(),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
void setAppsDev(List<MIHTile> tileList) {
|
void setAppsDev(List<MIHTile> tileList) {
|
||||||
@@ -560,15 +567,18 @@ 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(
|
||||||
profilePictureFile: widget.propicFile,
|
padding: const EdgeInsets.only(left: 5.0),
|
||||||
proPicController: proPicController,
|
child: MIHProfilePicture(
|
||||||
proPic: null,
|
profilePictureFile: widget.propicFile,
|
||||||
width: 45,
|
proPicController: proPicController,
|
||||||
radius: 21,
|
proPic: null,
|
||||||
drawerMode: false,
|
width: 45,
|
||||||
editable: false,
|
radius: 21,
|
||||||
onChange: (newProPic) {},
|
drawerMode: false,
|
||||||
|
editable: false,
|
||||||
|
onChange: (newProPic) {},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
// const Icon(Icons.apps),
|
// const Icon(Icons.apps),
|
||||||
iconSize: 45,
|
iconSize: 45,
|
||||||
|
|||||||
Reference in New Issue
Block a user