App Configuration
This guide outlines the essential steps for configuring your Elite Quiz App after its initial setup, allowing you to tailor it to your specific requirements.
Upon successfully setting up Flutter and running your project, you can customize the Elite Quiz App to meet your specific needs.
Change the Package Name
To update your application's package name, refer to our official guide provided here: How to Change Package Name.
Change the Application Name
The application name is displayed beneath the app icon on user devices.
-
For Android:
- Navigate to
android/app/src/main/AndroidManifest.xml. - Locate the
android:labelattribute within the<application>tag. - Set its value to your preferred application name, as shown below:
<application
android:label="Your App Name"
...> - Navigate to
-
For iOS:
- Open
ios/Runner/Info.plist. - Find the
CFBundleNamekey and update its corresponding string value:
<key>CFBundleName</key>
<string>Your App Name</string> - Open
Update the App Version
Maintaining an up-to-date app version is crucial for releases and subsequent updates.
- Open the
pubspec.yamlfile located in your project's root directory. - Find the
versionproperty. - Update it using the following format:
version: 1.0.0+1 # version_name+version_code1.0.0represents the version name visible to users.1is the internal version code, which should be incremented with each new release.
Connect to the Admin Panel
To establish a connection between your app and your Admin Panel:
- Open
lib/core/constants/constants.dartwithin your project. - Locate the
kBaseUrlconstant and update it with the URL of your Admin Panel:/// Add your panel url here
// NOTE: Do not add '/' at the end of the URL
// NOTE: Check if your admin panel uses http or https
const String kBaseUrl = 'https://your-admin-panel-url.com';
Other Configurations
The lib/core/constants/constants.dart file also contains additional configurable settings. These include:
- Phone Login Settings: Configure the default country code and maximum phone number length during phone login.
Examples of these configurations are provided below:
// Default country dial code preselected in the phone login.
const String kDefaultCountryCode = '+91';
// Maximum length allowed for phone number inputs.
const int kMaxPhoneNumberLength = 16;
What’s Next?
Following these fundamental configurations, proceed with the subsequent steps:
- Integrate Firebase services.
- Customize the application's appearance.
- Set up advertisements and in-app purchases.
- Conduct comprehensive testing of your application.
- Generate a release build.
Detailed instructions for each of these steps are available in the subsequent sections of this documentation.