diff --git a/Frontend/patient_manager/lib/mih_packages/mih_home/home_tile_grid.dart b/Frontend/patient_manager/lib/mih_packages/mih_home/home_tile_grid.dart index ec8e615c..28c3a543 100644 --- a/Frontend/patient_manager/lib/mih_packages/mih_home/home_tile_grid.dart +++ b/Frontend/patient_manager/lib/mih_packages/mih_home/home_tile_grid.dart @@ -4,6 +4,7 @@ import 'package:google_nav_bar/google_nav_bar.dart'; import 'package:patient_manager/mih_components/mih_layout/mih_tile.dart'; import 'package:patient_manager/mih_components/mih_inputs_and_buttons/mih_search_input.dart'; import 'package:patient_manager/mih_components/mih_layout/mih_app_drawer.dart'; +import 'package:patient_manager/mih_components/mih_layout/mih_window.dart'; import 'package:patient_manager/mih_components/mih_pop_up_messages/mih_delete_message.dart'; import 'package:patient_manager/mih_components/mih_pop_up_messages/mih_loading_circle.dart'; import 'package:patient_manager/mih_components/mih_pop_up_messages/mih_warning_message.dart'; @@ -351,6 +352,64 @@ class _HomeTileGridState extends State { p: getPrim(), s: getSec(), )); + tileList.add(MIHTile( + onTap: () { + showDialog( + barrierDismissible: false, + context: context, + builder: (context) { + // return const MIHErrorMessage(errorType: "Input Error"); + // return const MIHErrorMessage(errorType: "Password Requirements"); + // return const MIHErrorMessage(errorType: "Invalid Username"); + // return const MIHErrorMessage(errorType: "Invalid Email"); + // return const MIHErrorMessage(errorType: "User Exists"); + // return const MIHErrorMessage(errorType: "Password Match"); + // return const MIHErrorMessage(errorType: "Invalid Credentials"); + return MIHWindow( + windowTitle: "Test Window", + windowItems: const [SizedBox()], + actionItems: [ + IconButton( + onPressed: () { + //deleteFilePopUp(filePath, fileID); + }, + icon: Icon( + Icons.delete, + size: 35, + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + ), + ), + IconButton( + onPressed: () { + //deleteFilePopUp(filePath, fileID); + }, + icon: Icon( + Icons.wallet, + size: 35, + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + ), + ), + ], + onTapClose: () { + Navigator.pop(context); + }, + ); + }, + ); + }, + tileName: "Window - Dev", + tileIcon: Icon( + Icons.window, + color: getSec(), + size: 200, + ), + p: getPrim(), + s: getSec(), + )); } } @@ -459,9 +518,8 @@ class _HomeTileGridState extends State { style: TextStyle( fontWeight: FontWeight.bold, fontSize: 20.0, - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), + color: + MzanziInnovationHub.of(context)!.theme.secondaryColor(), ), ), const SizedBox(height: 20), @@ -575,7 +633,7 @@ class _HomeTileGridState extends State { ], ), ), - + //), // ], // ), @@ -587,8 +645,7 @@ class _HomeTileGridState extends State { //hoverColor: Colors.lightBlueAccent, color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), iconSize: 35.0, - activeColor: - MzanziInnovationHub.of(context)!.theme.primaryColor(), + activeColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), tabBackgroundColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), //gap: 20,