{"id":121,"date":"2025-05-20T04:45:04","date_gmt":"2025-05-20T04:45:04","guid":{"rendered":"https:\/\/documentation.iqonic.design\/frezka\/?p=121"},"modified":"2026-02-05T11:20:13","modified_gmt":"2026-02-05T11:20:13","slug":"flutter-configuration","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/frezka\/flutter-configuration\/","title":{"rendered":"Flutter Configuration"},"content":{"rendered":"<div class=\"nolwrap\">\n<p>Follow the steps below to customize the Flutter mobile app for your Frezka project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Change the App Name<\/h2>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 configs.dart<\/strong><\/p>\n\n\n\n<p>Update the app name constant:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const APP_NAME = 'YOUR APP NAME';\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Reconfigure the Server URL<\/h2>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 configs.dart<\/strong><\/p>\n\n\n\n<p>Update the domain URL:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const DOMAIN_URL = \"ADD YOUR DOMAIN URL\";<\/pre>\n\n\n\n<p><strong>Note :<\/strong> Do not add (&#8216;\/&#8217;) at the end of DOMAIN_URL<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Change the Default Language<\/h2>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 configs.dart<\/strong><\/p>\n\n\n\n<p>Update the default language code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const DEFAULT_LANGUAGE = \"LANGUAGE CODE\"; \/\/ Example: \"en\", \"ar\", \"de\", \"pt\", \"es\"<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\ud83d\udca1 Tip:<\/h5>\n\n\n\n<p>Use only the <strong>language code<\/strong>, not the full language name.<br>Supported languages:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[\"en\", \"ar\", \"de\", \"pt\", \"es\"]<\/pre>\n\n\n\n<p>For other languages, additional customization is required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Change the App Font<\/h2>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 app_theme.dart<\/strong><\/p>\n\n\n\n<p>Update the font family:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">fontFamily: GoogleFonts.FONT_NAME().fontFamily,<br>textTheme: GoogleFonts.FONT_NAMETextTheme(),<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\ud83d\udca1 Tip:<\/h5>\n\n\n\n<p>Apply the same font changes in <strong>both<\/strong> <code>LightTheme<\/code> and <code>DarkTheme<\/code> sections to keep the design consistent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Change Primary &amp; Secondary Colors<\/h2>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 utils \u2192 colors.dart<\/strong><\/p>\n\n\n\n<p>Update the color values:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">var primaryColor = Color(0xFFA82D86);<br>var secondaryColor = Color(0xFF19235A);<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\ud83d\udca1 Tip<\/h5>\n\n\n\n<p>Always use the format <code>0xFF<\/code> before your hex color code to avoid unexpected color rendering issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Update Notification Icon Name<\/h2>\n\n\n\n<p>After creating your notification icon, update its name in the Firebase messaging configuration.<\/p>\n\n\n\n<p>\ud83d\udcc1\u00a0<strong>Path:<\/strong><br><strong>lib \u2192 utils \u2192 firebase_messaging_utils.dart<\/strong><\/p>\n\n\n\n<p>Inside the <code>showNotification()<\/code> method, update these lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const AndroidInitializationSettings initializationSettingsAndroid = AndroidInitializationSettings('@drawable\/YOUR_NOTIFICATION_ICON_NAME');<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>var androidPlatformChannelSpecifics = AndroidNotificationDetails(<br>  'notification',<br>  'Notification',<br>  importance: Importance.high,<br>  visibility: NotificationVisibility.public,<br>  autoCancel: true,<br>  playSound: true,<br>  priority: Priority.high,<br>  icon: '@drawable\/YOUR_NOTIFICATION_ICON_NAME',<br>);<\/pre>\n\n\n\n<p><strong>Note: <\/strong>Replace\u00a0<strong>YOUR NOTIFICATION ICON NAME<\/strong>\u00a0with your actual icon file name in\u00a0<strong>drawable<\/strong>\u00a0folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcf1 Platform-Specific Setup<\/h3>\n\n\n\n<p>After updating the icon name, make sure to follow the notification setup steps in the documentation for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/documentation.iqonic.design\/frezka\/configurations-customization\/android-configuration\">Android configuration<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/documentation.iqonic.design\/frezka\/configurations-customization\/ios-configuration\">iOS configuration<\/a><\/strong><\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Follow the steps below to customize the Flutter mobile app for your Frezka project. 1. Change the App Name \ud83d\udcc1\u00a0Path:lib \u2192 configs.dart Update the app name constant: 2. Reconfigure the Server URL \ud83d\udcc1\u00a0Path:lib \u2192 configs.dart Update the domain URL: const DOMAIN_URL = &#8220;ADD YOUR DOMAIN URL&#8221;; Note : Do not add (&#8216;\/&#8217;) at the end [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":117,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/frezka\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":14,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":1518,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/121\/revisions\/1518"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/117"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}