refactor: Update API base URL and change default color theme to green

This commit is contained in:
Vaibhav Surve 2025-10-31 15:35:53 +05:30
parent 6568dc70c8
commit 8dbd21df8b
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
class ApiEndpoints { class ApiEndpoints {
// static const String baseUrl = "https://mapi.marcoaiot.com/api"; // static const String baseUrl = "https://mapi.marcoaiot.com/api";
static const String baseUrl = "https://ofwapi.marcoaiot.com/api"; // static const String baseUrl = "https://ofwapi.marcoaiot.com/api";
static const String baseUrl = "https://api.onfieldwork.com/api";
// static const String baseUrl = "https://api.marcoaiot.com/api"; // static const String baseUrl = "https://api.marcoaiot.com/api";
// static const String baseUrl = "https://devapi.marcoaiot.com/api"; // static const String baseUrl = "https://devapi.marcoaiot.com/api";

View File

@ -266,7 +266,7 @@ class AdminTheme {
leftBarTheme: LeftBarTheme.lightLeftBarTheme, leftBarTheme: LeftBarTheme.lightLeftBarTheme,
topBarTheme: TopBarTheme.lightTopBarTheme, topBarTheme: TopBarTheme.lightTopBarTheme,
rightBarTheme: RightBarTheme.lightRightBarTheme, rightBarTheme: RightBarTheme.lightRightBarTheme,
contentTheme: ContentTheme.withColorTheme(ColorThemeType.purple, mode: ThemeMode.light), contentTheme: ContentTheme.withColorTheme(ColorThemeType.green, mode: ThemeMode.light),
); );
static void setTheme() { static void setTheme() {

View File

@ -24,7 +24,7 @@ class ThemeCustomizer {
ThemeMode leftBarTheme = ThemeMode.light; ThemeMode leftBarTheme = ThemeMode.light;
ThemeMode rightBarTheme = ThemeMode.light; ThemeMode rightBarTheme = ThemeMode.light;
ThemeMode topBarTheme = ThemeMode.light; ThemeMode topBarTheme = ThemeMode.light;
ColorThemeType colorTheme = ColorThemeType.red; ColorThemeType colorTheme = ColorThemeType.green;
bool rightBarOpen = false; bool rightBarOpen = false;
bool leftBarCondensed = false; bool leftBarCondensed = false;
@ -34,7 +34,7 @@ class ThemeCustomizer {
static Future<void> init() async { static Future<void> init() async {
await initLanguage(); await initLanguage();
await _loadColorTheme(); await _loadColorTheme();
_notify(); _notify();
} }
static initLanguage() async { static initLanguage() async {