Use Mih Color Red
This commit is contained in:
parent
6ba3da6368
commit
726c6f5213
46 changed files with 181 additions and 236 deletions
|
|
@ -88,8 +88,7 @@ class _MihAddBookmarkAlertState extends State<MihAddBookmarkAlert> {
|
|||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: TextStyle(
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Making Call",
|
||||
alertBody: Column(
|
||||
|
|
@ -68,7 +68,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -102,7 +102,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Email",
|
||||
alertBody: Column(
|
||||
|
|
@ -118,7 +118,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -143,7 +143,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Maps",
|
||||
alertBody: Column(
|
||||
|
|
@ -159,8 +159,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -172,7 +171,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Maps",
|
||||
alertBody: Column(
|
||||
|
|
@ -188,7 +187,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -212,7 +211,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Opening Website",
|
||||
alertBody: Column(
|
||||
|
|
@ -228,8 +227,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -241,7 +239,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Opening Website",
|
||||
alertBody: Column(
|
||||
|
|
@ -257,7 +255,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,8 +121,7 @@ class _MihDeleteBookmarkAlertState extends State<MihDeleteBookmarkAlert> {
|
|||
deleteBookmark(
|
||||
widget.bookmarkBusiness!.idbookmarked_businesses);
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Remove Business",
|
||||
style: TextStyle(
|
||||
|
|
|
|||
|
|
@ -52,11 +52,11 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => MihPackageAlert(
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Delete Review",
|
||||
alertBody: Column(
|
||||
|
|
@ -117,8 +117,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||
}
|
||||
});
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Delete",
|
||||
style: TextStyle(
|
||||
|
|
@ -157,7 +156,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -501,9 +500,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||
MihAlertServices().formNotFilledCompletely(context);
|
||||
}
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.successColor(),
|
||||
buttonColor: MihColors.getGreenColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
widget.businessReview != null
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||
return MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Updating Business Details",
|
||||
alertBody: Column(
|
||||
|
|
@ -120,8 +120,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
@ -605,7 +604,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
|||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/app_user.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_packages/mzansi_profile/business_profile/builders/build_user_list.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_user_services.dart';
|
||||
|
|
@ -223,9 +224,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
|
|||
child: Text(
|
||||
"$errorCode: Error pulling Patients Data\n/users/search/$userSearch\n$errorBody",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import 'package:mzansi_innovation_hub/main.dart';
|
|||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_tool_body.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_env.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/business_employee.dart';
|
||||
|
|
@ -104,9 +105,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
|
|||
child: Text(
|
||||
"$errorCode: Error pulling Patients Data\n${AppEnviroment.baseApiUrl}/business-user/users/${widget.arguments.businessUser!.business_id}\n$errorBody",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
|
|||
return MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Updating Business User Details",
|
||||
alertBody: Column(
|
||||
|
|
@ -142,8 +142,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
|
|||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import 'package:country_code_picker/country_code_picker.dart';
|
|||
import 'package:http/http.dart';
|
||||
import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_business_details_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_file_services.dart';
|
||||
|
|
@ -259,7 +260,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue