Xgenious/ docs
Products
Get support

Central Config

All main variables — app name, version, font, theme colors, and API URL — are centralized in one file for easy rebranding.

File

lib/core/config/app_config.dart

Note

Legacy code referenced lib/customizations.dart. Prefer lib/core/config/app_config.dart below; if your project still uses the old path, apply the same values there.

Update values

Open the file and modify:

abstract final class AppConfig {
  // 1. App Branding Name
  static const String appName = "YourBrandName";
  
  // 2. App Version
  static const String appVersion = "1.0.0";
  
  // 3. Global Typography Font Family
  static const String fontFamily = "Inter Tight"; // Add font assets in pubspec.yaml if changed

  // 4. Color Palettes (Hex colors)
  static const Color primaryColorLight = Color(0xFF586BF1); // Light theme
  static const Color primaryColorDark = Color(0xFF7B8FF5);  // Dark theme
  
  // 5. Backend REST API Base URL
  static const String baseUrl = "https://yourdomain.com/api";
}

After editing

  • If you changed fontFamily, add the font files and declare them in pubspec.yaml under flutter: fonts:.
  • Replace YourBrandName and https://yourdomain.com/api with your product name and Prohandy admin API base URL.
  • Continue to Updating Display Names to change the launcher label shown on devices.
Still stuck?
Our support team is ready to help you get set up.
Get support