diff --git a/Frontend/lib/mih_package_components/Example/package_tools/package_tool_zero.dart b/Frontend/lib/mih_package_components/Example/package_tools/package_tool_zero.dart index 2bd84414..5b9cf66a 100644 --- a/Frontend/lib/mih_package_components/Example/package_tools/package_tool_zero.dart +++ b/Frontend/lib/mih_package_components/Example/package_tools/package_tool_zero.dart @@ -142,6 +142,68 @@ class _PackageToolZeroState extends State { ), ), const SizedBox(height: 10), + MihButton( + width: 300, + onPressed: () { + MihAlertServices().warningAdvancedAlert( + "warning!", + "This is the advanced alert message", + [ + MihButton( + onPressed: () { + context.pop(); + }, + buttonColor: MihColors.getPrimaryColor( + MzansiInnovationHub.of(context)!.theme.mode == "Dark"), + width: 300, + elevation: 10, + child: Text( + "Okay", + style: TextStyle( + color: MihColors.getSecondaryColor( + MzansiInnovationHub.of(context)!.theme.mode == + "Dark"), + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + ), + MihButton( + onPressed: () { + context.pop(); + }, + buttonColor: MihColors.getRedColor( + MzansiInnovationHub.of(context)!.theme.mode == "Dark"), + width: 300, + elevation: 10, + child: Text( + "Dismiss", + style: TextStyle( + color: MihColors.getPrimaryColor( + MzansiInnovationHub.of(context)!.theme.mode == + "Dark"), + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + ), + ], + context, + ); + }, + buttonColor: MihColors.getSecondaryColor( + MzansiInnovationHub.of(context)!.theme.mode == "Dark"), + child: Text( + "Advanced Warning Alert", + style: TextStyle( + color: MihColors.getPrimaryColor( + MzansiInnovationHub.of(context)!.theme.mode == "Dark"), + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + ), + const SizedBox(height: 10), MihButton( width: 300, onPressed: () { diff --git a/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart b/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart index 19d90e77..c9d279fe 100644 --- a/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart +++ b/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart @@ -224,7 +224,7 @@ class _BuildLoyaltyCardListState extends State { void addToFavCardWindow(MzansiProfileProvider mzansiProfileProvider, MzansiWalletProvider walletProvider, BuildContext ctxt, int index) { - MihAlertServices().successAdvancedAlert( + MihAlertServices().warningAdvancedAlert( // "Card Added to Favourites", "Add Card to Favourites?", "Would you like to add this card to your favourites for quick access?", @@ -278,13 +278,13 @@ class _BuildLoyaltyCardListState extends State { MihAlertServices().internetConnectionAlert(context); } }, - buttonColor: MihColors.getPrimaryColor( + buttonColor: MihColors.getGreenColor( MzansiInnovationHub.of(context)!.theme.mode == "Dark"), width: 300, child: Text( "Add", style: TextStyle( - color: MihColors.getSecondaryColor( + color: MihColors.getPrimaryColor( MzansiInnovationHub.of(context)!.theme.mode == "Dark"), fontSize: 20, fontWeight: FontWeight.bold, @@ -298,7 +298,7 @@ class _BuildLoyaltyCardListState extends State { void removeFromFavCardWindow(MzansiProfileProvider mzansiProfileProvider, MzansiWalletProvider walletProvider, BuildContext ctxt, int index) { - MihAlertServices().errorAdvancedAlert( + MihAlertServices().warningAdvancedAlert( "Remove From Favourites?", "Are you sure you want to remove this card from your favourites?", [ @@ -333,13 +333,13 @@ class _BuildLoyaltyCardListState extends State { MihAlertServices().internetConnectionAlert(context); } }, - buttonColor: MihColors.getPrimaryColor( + buttonColor: MihColors.getRedColor( MzansiInnovationHub.of(context)!.theme.mode == "Dark"), width: 300, child: Text( "Remove", style: TextStyle( - color: MihColors.getSecondaryColor( + color: MihColors.getPrimaryColor( MzansiInnovationHub.of(context)!.theme.mode == "Dark"), fontSize: 20, fontWeight: FontWeight.bold, @@ -350,7 +350,7 @@ class _BuildLoyaltyCardListState extends State { onPressed: () async { context.pop(); }, - buttonColor: MihColors.getSecondaryColor( + buttonColor: MihColors.getGreenColor( MzansiInnovationHub.of(context)!.theme.mode == "Dark"), width: 300, child: Text(