Change Chart Design && Update dark theme colors
parent
7418e8d937
commit
9e2baae2e2
@ -1,144 +1,144 @@
|
|||||||
import 'package:flutter/material.dart';
|
// import 'package:flutter/material.dart';
|
||||||
import 'package:test_sa/new_views/app_style/app_color.dart';
|
// import 'package:test_sa/new_views/app_style/app_color.dart';
|
||||||
|
//
|
||||||
class AColors {
|
// class AColors {
|
||||||
AColors._();
|
// AColors._();
|
||||||
|
//
|
||||||
static const Color white = Color(0xffffffff);
|
// static const Color white = Color(0xffffffff);
|
||||||
static const Color black = Color(0xff000000);
|
// static const Color black = Color(0xff000000);
|
||||||
static const Color grey3A = Color(0xff2e303a);
|
// static const Color grey3A = Color(0xff2e303a);
|
||||||
static const Color grey = Color(0xffe1e7e7);
|
// static const Color grey = Color(0xffe1e7e7);
|
||||||
static const green = Colors.green;
|
// static const green = Colors.green;
|
||||||
static const Color orange = Colors.orange;
|
// static const Color orange = Colors.orange;
|
||||||
static const Color deepOrange = Colors.deepOrangeAccent;
|
// static const Color deepOrange = Colors.deepOrangeAccent;
|
||||||
static const Color red = Colors.red;
|
// static const Color red = Colors.red;
|
||||||
static const Color deepRed = Color(0xFFD32F2F);
|
// static const Color deepRed = Color(0xFFD32F2F);
|
||||||
static const Color scaffoldBackgroundColor = Color(0xffffffff);
|
// static const Color scaffoldBackgroundColor = Color(0xffffffff);
|
||||||
static const Color secondaryColor = Color(0xff111427);
|
// static const Color secondaryColor = Color(0xff111427);
|
||||||
static const Color primaryColor = Color(0xff5bb0da);
|
// static const Color primaryColor = Color(0xff5bb0da);
|
||||||
static const Color cyan = Color(0xff4A8DB7);
|
// static const Color cyan = Color(0xff4A8DB7);
|
||||||
static const Color onPrimaryColor = Color(0xffffffff);
|
// static const Color onPrimaryColor = Color(0xffffffff);
|
||||||
static Color inputFieldBackgroundColor = Color(0xfff5f5f5);
|
// static Color inputFieldBackgroundColor = Color(0xfff5f5f5);
|
||||||
static Color greyEF = Color(0xffEFEFEF);
|
// static Color greyEF = Color(0xffEFEFEF);
|
||||||
|
//
|
||||||
static Color statusYellow = const Color(0xFF886300);
|
// static Color statusYellow = const Color(0xFF886300);
|
||||||
static Color statusYellowLight = const Color(0xFFFFEDBC);
|
// static Color statusYellowLight = const Color(0xFFFFEDBC);
|
||||||
static Color statusGreen = const Color(0xFF62BE96);
|
// static Color statusGreen = const Color(0xFF62BE96);
|
||||||
static Color statusGreenLight = const Color(0xFF62BE96);
|
// static Color statusGreenLight = const Color(0xFF62BE96);
|
||||||
static Color statusRed = const Color(0xFF8C0409);
|
// static Color statusRed = const Color(0xFF8C0409);
|
||||||
static Color statusRedLight = const Color(0xFFFFDBDC);
|
// static Color statusRedLight = const Color(0xFFFFDBDC);
|
||||||
static Color statusBlue = AppColor.primary50;
|
// static Color statusBlue = AppColor.primary50;
|
||||||
// static Color statusBlueLight = const Color(0xFFA2E2F8);
|
// // static Color statusBlueLight = const Color(0xFFA2E2F8);
|
||||||
static Color statusDefault = const Color(0xFF3B3D4A);
|
// static Color statusDefault = const Color(0xFF3B3D4A);
|
||||||
|
//
|
||||||
static Color getRequestStatusTextColorByName(String status) {
|
// static Color getRequestStatusTextColorByName(String status) {
|
||||||
switch ((status ?? "").toLowerCase()) {
|
// switch ((status ?? "").toLowerCase()) {
|
||||||
case "in progress":
|
// case "in progress":
|
||||||
return AColors.statusYellow;
|
// return AColors.statusYellow;
|
||||||
case "high priority":
|
// case "high priority":
|
||||||
return AColors.statusRed;
|
// return AColors.statusRed;
|
||||||
// case "low priority":
|
// // case "low priority":
|
||||||
// return AColors.statusGreen;
|
// // return AColors.statusGreen;
|
||||||
default:
|
// default:
|
||||||
return AColors.white;
|
// return AColors.white;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getRequestStatusColorByName(String status) {
|
// static Color getRequestStatusColorByName(String status) {
|
||||||
switch ((status ?? "").toLowerCase()) {
|
// switch ((status ?? "").toLowerCase()) {
|
||||||
case "medium":
|
// case "medium":
|
||||||
return AColors.statusBlue.withOpacity(0.7);
|
// return AColors.statusBlue.withOpacity(0.7);
|
||||||
case "in progress":
|
// case "in progress":
|
||||||
return AColors.statusYellowLight;
|
// return AColors.statusYellowLight;
|
||||||
case "complete":
|
// case "complete":
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case "closed":
|
// case "closed":
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case "high priority":
|
// case "high priority":
|
||||||
return AColors.statusRedLight;
|
// return AColors.statusRedLight;
|
||||||
case "low priority":
|
// case "low priority":
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case "open":
|
// case "open":
|
||||||
return AColors.statusBlue.withOpacity(0.7);
|
// return AColors.statusBlue.withOpacity(0.7);
|
||||||
default:
|
// default:
|
||||||
return AColors.statusDefault;
|
// return AColors.statusDefault;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getRequestStatusColor(int id) {
|
// static Color getRequestStatusColor(int id) {
|
||||||
switch (id) {
|
// switch (id) {
|
||||||
case 1:
|
// case 1:
|
||||||
return AColors.statusBlue.withOpacity(0.7);
|
// return AColors.statusBlue.withOpacity(0.7);
|
||||||
case 2:
|
// case 2:
|
||||||
return AColors.statusYellowLight;
|
// return AColors.statusYellowLight;
|
||||||
case 3:
|
// case 3:
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case 4:
|
// case 4:
|
||||||
return AColors.statusRedLight;
|
// return AColors.statusRedLight;
|
||||||
case 6:
|
// case 6:
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case 5:
|
// case 5:
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case 8:
|
// case 8:
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case 9:
|
// case 9:
|
||||||
return AColors.orange;
|
// return AColors.orange;
|
||||||
default:
|
// default:
|
||||||
return AColors.statusDefault;
|
// return AColors.statusDefault;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getRequestStatusTextColor(int id) {
|
// static Color getRequestStatusTextColor(int id) {
|
||||||
switch (id) {
|
// switch (id) {
|
||||||
case 2:
|
// case 2:
|
||||||
return AColors.statusYellow;
|
// return AColors.statusYellow;
|
||||||
case 3:
|
// case 3:
|
||||||
return AColors.white;
|
// return AColors.white;
|
||||||
case 4:
|
// case 4:
|
||||||
return AColors.deepRed;
|
// return AColors.deepRed;
|
||||||
case 6:
|
// case 6:
|
||||||
return AColors.green;
|
// return AColors.green;
|
||||||
case 5:
|
// case 5:
|
||||||
return AColors.white;
|
// return AColors.white;
|
||||||
case 8:
|
// case 8:
|
||||||
return AColors.green;
|
// return AColors.green;
|
||||||
case 9:
|
// case 9:
|
||||||
return AColors.orange;
|
// return AColors.orange;
|
||||||
default:
|
// default:
|
||||||
return AColors.white;
|
// return AColors.white;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getGasStatusColor(int id) {
|
// static Color getGasStatusColor(int id) {
|
||||||
switch (id) {
|
// switch (id) {
|
||||||
case 0:
|
// case 0:
|
||||||
return AColors.orange;
|
// return AColors.orange;
|
||||||
case 1:
|
// case 1:
|
||||||
return AColors.green;
|
// return AColors.green;
|
||||||
default:
|
// default:
|
||||||
return AColors.statusDefault;
|
// return AColors.statusDefault;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getPriorityStatusTextColor(int id) {
|
// static Color getPriorityStatusTextColor(int id) {
|
||||||
switch (id) {
|
// switch (id) {
|
||||||
case 81:
|
// case 81:
|
||||||
return AColors.white;
|
// return AColors.white;
|
||||||
case 82:
|
// case 82:
|
||||||
return AColors.statusRed;
|
// return AColors.statusRed;
|
||||||
default:
|
// default:
|
||||||
return AColors.statusDefault;
|
// return AColors.statusDefault;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
static Color getPriorityStatusColor(int id) {
|
// static Color getPriorityStatusColor(int id) {
|
||||||
switch (id) {
|
// switch (id) {
|
||||||
case 81:
|
// case 81:
|
||||||
return AColors.statusGreenLight;
|
// return AColors.statusGreenLight;
|
||||||
case 82:
|
// case 82:
|
||||||
return AColors.statusRedLight;
|
// return AColors.statusRedLight;
|
||||||
default:
|
// default:
|
||||||
return AColors.statusDefault;
|
// return AColors.statusDefault;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
Loading…
Reference in New Issue