{"id":134,"date":"2025-03-20T07:13:15","date_gmt":"2025-03-20T07:13:15","guid":{"rendered":"https:\/\/documentation.iqonic.design\/handyman\/?p=134"},"modified":"2025-06-03T10:41:53","modified_gmt":"2025-06-03T10:41:53","slug":"flutter-configuration","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/handyman\/flutter-configuration\/","title":{"rendered":"Flutter Configuration"},"content":{"rendered":"<div class=\"nolwrap\">\n<p>Setting up Flutter for your Handyman Service Project<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change App&#8217;s Name<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 utils \u2192 configs.dart<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const APP_NAME = 'YOUR APP NAME';<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Reconfigure Server URL<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 utils \u2192 configs.dart<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const DOMAIN_URL = \"ADD YOUR DOMAIN URL\";<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change Default Language<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 utils \u2192 configs.dart<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const DEFAULT_LANGUAGE = \"LANGUAGE CODE\"; \/\/ (e.g., \"en\", \"ar\", \"de\", \"pt\", \"es\")<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>TIP<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Set the language code from the provided list&nbsp;<strong>[&#8220;en&#8221;, &#8220;ar&#8221;, &#8220;de&#8221;, &#8220;pt&#8221;, &#8220;es&#8221;]<\/strong>&nbsp;for supported languages in the application. For other languages, customization is required.<\/li>\n\n\n\n<li>Use only the language code, not the entire language name. You can find the language codes&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_ISO_639-1_codes\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change App Font<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 app_theme.dart<\/strong><\/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<h3 class=\"wp-block-heading\"><strong>TIP<\/strong><\/h3>\n\n\n\n<p>Remember to apply these steps to both the DarkTheme and LightTheme in the app_theme.dart file to ensure consistent behavior across your app&#8217;s themes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change Primary &amp; Secondary Color<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 utils \u2192 colors.dart<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">var primaryColor = Color(0xFF5F60B9);<br>var secondaryColor = Color(0xFFF3F4FA);<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The URLs<\/strong><\/h2>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>lib \u2192 utils \u2192 configs.dart<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const TERMS_CONDITION_URL = '' \/\/Add Your Terms And Condition URL;<br>const PRIVACY_POLICY_URL = '' \/\/Add Your Privacy Policy URL;<br>const HELP_AND_SUPPORT_URL = '' \/\/Add Your Help &amp; Support URL;<br>const REFUND_POLICY_URL = '' \/\/Add Your Refund Policy URL;<br>const INQUIRY_SUPPORT_EMAIL = '' \/\/Add Your Inquiry Support Email;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Partner App Package and iOS App URL<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">const PROVIDER_PACKAGE_NAME = '' \/\/ Your Provider App Package Name;<br>const IOS_LINK_FOR_PARTNER = '' \/\/ Your Provider App's Appstore Link;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Update Notification Icon Name<\/strong><\/h2>\n\n\n\n<p>After creating notification icon you can perform this change.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open&nbsp;<strong>lib \u2192 utils \u2192 firebase_messaging_utils.dart<\/strong>.<\/li>\n\n\n\n<li>In showNotification() method find lines below<\/li>\n<\/ul>\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\">var androidPlatformChannelSpecifics = AndroidNotificationDetails(<br>    'notification',<br>    'Notification',<br>    importance: Importance.high,<br>    visibility: NotificationVisibility.public,<br>    autoCancel: true,<br>    \/\/color: primaryColor,<br>    playSound: true,<br>    priority: Priority.high,<br>    icon: '@drawable\/YOUR NOTIFICATION ICON NAME',<br>  );<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>TIP<\/strong><\/h3>\n\n\n\n<p>Best practice and setting the hex value after 0xFF, you can avoid unexpected color rendering issues and ensure consistent appearance of your UI elements.<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Setting up Flutter for your Handyman Service Project Change App&#8217;s Name In the main directory, go to&nbsp;lib \u2192 utils \u2192 configs.dart const APP_NAME = &#8216;YOUR APP NAME&#8217;; Reconfigure Server URL In the main directory, go to&nbsp;lib \u2192 utils \u2192 configs.dart const DOMAIN_URL = &#8220;ADD YOUR DOMAIN URL&#8221;; Change Default Language In the main directory, go [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-handyman-services"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/handyman\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":3,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":1381,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/134\/revisions\/1381"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/132"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}