Frezka - Documentation
Frezka

Flutter Configuration

Follow the steps below to customize the Flutter mobile app for your Frezka project.

1. Change the App Name

📁 Path:
lib → configs.dart

Update the app name constant:

const APP_NAME = 'YOUR APP NAME';

2. Reconfigure the Server URL

📁 Path:
lib → configs.dart

Update the domain URL:

const DOMAIN_URL = "ADD YOUR DOMAIN URL";

Note : Do not add (‘/’) at the end of DOMAIN_URL

3. Change the Default Language

📁 Path:
lib → configs.dart

Update the default language code:

const DEFAULT_LANGUAGE = "LANGUAGE CODE"; // Example: "en", "ar", "de", "pt", "es"
💡 Tip:

Use only the language code, not the full language name.
Supported languages:

["en", "ar", "de", "pt", "es"]

For other languages, additional customization is required.

4. Change the App Font

📁 Path:
lib → app_theme.dart

Update the font family:

fontFamily: GoogleFonts.FONT_NAME().fontFamily,
textTheme: GoogleFonts.FONT_NAMETextTheme(),
💡 Tip:

Apply the same font changes in both LightTheme and DarkTheme sections to keep the design consistent.

5. Change Primary & Secondary Colors

📁 Path:
lib → utils → colors.dart

Update the color values:

var primaryColor = Color(0xFFA82D86);
var secondaryColor = Color(0xFF19235A);
💡 Tip

Always use the format 0xFF before your hex color code to avoid unexpected color rendering issues.

6. Update Notification Icon Name

After creating your notification icon, update its name in the Firebase messaging configuration.

📁 Path:
lib → utils → firebase_messaging_utils.dart

Inside the showNotification() method, update these lines:

const AndroidInitializationSettings initializationSettingsAndroid = AndroidInitializationSettings('@drawable/YOUR_NOTIFICATION_ICON_NAME');

var androidPlatformChannelSpecifics = AndroidNotificationDetails(
'notification',
'Notification',
importance: Importance.high,
visibility: NotificationVisibility.public,
autoCancel: true,
playSound: true,
priority: Priority.high,
icon: '@drawable/YOUR_NOTIFICATION_ICON_NAME',
);

Note: Replace YOUR NOTIFICATION ICON NAME with your actual icon file name in drawable folder.

📱 Platform-Specific Setup

After updating the icon name, make sure to follow the notification setup steps in the documentation for: