|
|
|
|
@ -319,10 +319,25 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
DashboardViewModel model, projectsProvider) {
|
|
|
|
|
colorIndex = 0;
|
|
|
|
|
|
|
|
|
|
List<Color> backgroundColors = List(3);
|
|
|
|
|
backgroundColors[0] = AppGlobal.appRedColor;
|
|
|
|
|
backgroundColors[1] = Colors.grey[300];
|
|
|
|
|
backgroundColors[2] = Color(0xFF2B353E);
|
|
|
|
|
List<LinearGradient> backgroundColors = List(3);
|
|
|
|
|
backgroundColors[0] = LinearGradient(
|
|
|
|
|
begin: Alignment(-1.0, -2.0),
|
|
|
|
|
end: Alignment(1.0, 2.0),
|
|
|
|
|
colors: [
|
|
|
|
|
AppGlobal.appRedColor,Color(0xFFAD3B3B),
|
|
|
|
|
]);//AppGlobal.appRedColor;
|
|
|
|
|
backgroundColors[1] = LinearGradient(
|
|
|
|
|
begin: Alignment(-1.0, -2.0),
|
|
|
|
|
end: Alignment(1.0, 2.0),
|
|
|
|
|
colors: [
|
|
|
|
|
Color(0xFFC9C9C9),Color(0xFFEDEDED)
|
|
|
|
|
]);
|
|
|
|
|
backgroundColors[2] = LinearGradient(
|
|
|
|
|
begin: Alignment.center,
|
|
|
|
|
end: Alignment.center,
|
|
|
|
|
colors: [
|
|
|
|
|
Color(0xFF71787E),AppGlobal.appTextColor
|
|
|
|
|
]);
|
|
|
|
|
List<Color> backgroundIconColors = List(3);
|
|
|
|
|
backgroundIconColors[0] = Colors.white12;
|
|
|
|
|
backgroundIconColors[1] = Colors.white38;
|
|
|
|
|
@ -336,7 +351,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
|
|
|
|
|
if (model.hasVirtualClinic) {
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.livecare,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
@ -373,7 +388,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.inpatient,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
@ -393,7 +408,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
changeColorIndex();
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
//TODO Elham* match the of the icon
|
|
|
|
|
cardIcon: DoctorApp.arrival_patients,
|
|
|
|
|
@ -411,7 +426,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
changeColorIndex();
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.arrival_patients,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
@ -438,7 +453,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
changeColorIndex();
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.referral_1,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
@ -456,7 +471,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
changeColorIndex();
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.search,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
@ -473,7 +488,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
changeColorIndex();
|
|
|
|
|
|
|
|
|
|
patientCards.add(HomePatientCard(
|
|
|
|
|
backgroundColor: backgroundColors[colorIndex],
|
|
|
|
|
gradient: backgroundColors[colorIndex],
|
|
|
|
|
backgroundIconColor: backgroundIconColors[colorIndex],
|
|
|
|
|
cardIcon: DoctorApp.search_medicines,
|
|
|
|
|
textColor: textColors[colorIndex],
|
|
|
|
|
|