Introduction

Thank you for purchasing code. It really means a lot and It's our pleasure to serve top-notch service to you. Thank you so much for choosing WRTeam . If you have trouble with the code and documentation please contact to our Support Team Here


How to setup Flutter?

  1. Visit flutter official website : Get Flutter sdk for full installation guide.

    If you prefer video tutorials, we recommend this playlist for the full installation process
    Flutter installation video
  2. Now open Android Studio and click on 'Open' then select 'eRestro Single Vendor' folder that you have downloaded from codecanyon.
  3. Click on open

    eRestro
  4. Now if you have not set 'flutter sdk' path before. then go to File>Settings

    eRestro
  5. If you have not installed plugin before then click on 'plugins' tab and install flutter,dart and kotlin plugins

    eRestro
  6. From left pane, open 'Languages and Frameworks' and click on 'flutter', then on right panel set path of flutter folder that you have downloaded in first step

    eRestro
  7. It will set Dart SDK automatically, but if does not. then from left panel click on 'dart' and set 'dart-sdk' path as shown in image

    eRestro

Upgrade flutter

  1. for upgrade go to terminal in android studio and type 'flutter upgrade' it will automatically pick latest version with stable channel
  2. If you have updated flutter 3.x after upgrade run flutter doctor. and in flutter doctor if you see error like licence status unknown.

    eRestro
  3. Then go to sdk manager from uper right corner, then go to android sdk and then uncheck 'hide obsolute package' then check 'android sdk command line tool latest' then apply and then ok. it will download latest version as shown in below fig.

    eRestro
  4. now run flutter doctor again your error will be removed

How to change package name?

  1. If your package directory not broken up in individual directories. In the Android panel, click on the little gear icon.Uncheck/Deselect the Compact Empty Middle Packages option.

    eRestro
  2. Your package directory will now be broken up in individual directories.

    eRestro
  3. Individually select each directory you want to rename, and: Right-click it Select Refactor Click on Rename current In the Pop-up dialog.

    eRestro
  4. Enter the new name and hit Refactor.Allow a minute to let Android Studio update all changes.

    eRestro
  5. after changing 'com.wrteam.erestro' , your directory should look like this(new name is just for example purpose) Please give meaningful package name

    eRestro
    eRestro
  6. Now press ctrl + shift + R and replace old packagename with your new packagename

    eRestro


How to run flutter project?

  1. Now to run project, if you see upper right part 'enable dart support' then click that and go to pubspec.yaml file and in uper right part click 'pub get' or 'package get' and then press run button.

  2. eRestro
  3. If you are getting error then you can perform below hack
  4. if in your system firewall is on, then you can temporary disable firewall and then try to run project
  5. if your flutter channel is not stable then you need to change it to stable. you can check your flutter channel by terminal.
  6. go to android studio in bottom line click on terminal, in terminal write flutter channel.as shown below.

    eRestro
  7. if your are not in stable then write "flutter channel stable"
  8. go to Tools > Flutter > Flutter Clean.
  9. go to file > invalidate cache/ restart
  10. If all set, then select device or run emulator, and click on 'Play' icon in uper right corner
    To run app in physical device, you have to enable 'Developer Options' and 'USB Debugging' in your phone

    eRestro

How to change application name?

  1. Change application name for your android application. Go to lib>utils>string.dart

    eRestro
  2. Change application name for your android application. Go to android/app/src/main/AndroidManifest.xml and change value of 'android:label'

    eRestro
  3. Change application name for your ios application. Go to ios/Runner/Info.plist and change value of 'CFBundleName'

    eRestro


How to change application version?

  1. go to pubspec.yaml and change 'version'. for example. version:1.0.1+2 .
  2. Do not forget to execute 'flutter pub get',and 'flutter run' after this step
eRestro


How to change application color?

  1. Add your colors in lib>ui>styles>colors.dart and do not change the color variables name

    eRestro


How to change application string?

  1. Go to lib>utils>string.dart as shown in image and change values of variable you want to change according to your app

    eRestro

How to change Language?

  1. By default,default applicaiton language is english. If you want to change default language go to lib>utils>appLanguages.dart and add your respective language's code shown in below image. Get your language code from here https://developers.google.com/admin-sdk/directory/v1/languages.

    eRestro
  2. If your default language code is not in app language list add language details in list as shown in below image. Go to lib/utils/appLanguages.dart

    eRestro
  3. If your default language is not in assets/languages/[language-code].json then create new file in same folder with [language-code].json. Add all the labels from en.json and convert label values in your respective language

    eRestro
  4. Copy all the labels form en.json file in your [language-code].json file.

    eRestro
  5. If you want to add new language then follow the steps 2,3 and 4.


How to change application font?

  1. Go to assets/fonts and add your font as shown in image
    then open pubspec.yaml file and add your font details as shown in below image

    eRestro


How to change application image?

  1. Go to assets/images and replace your image with same name

    eRestro


How to Change server url?

  1. Go to your admin panel in that go to system and inside that client api key, here you have to copy API link as shown in below fig and paste it in app baseURL.

    eRestro

    eRestro
  2. Go to lib > utils > constants.dart. here you have to change your API server url.

    eRestro


How to Change default country code for OTP?

  1. Go to lib>utils>screen>constants.dart file inside that here you have to change country code to your language code.

    eRestro

How to setup Notification?

  1. Get server key from your firebase project and set in panel.

    eRestro
  2. now enable Cloud Messaging for use with Firebase Authentication.In the Google Cloud Console, enable the Cloud Messaging for your project.first make sure your correct project is selected then press enable button.

    news

  3. Now add in admin panel

    eRestro

    eRestro
    1. For ios your need to perform below given step
    2. In Xcode, open the project.
    3. In the Project Navigator (the left-hand menu), select the project icon that represents your app.
    4. In the top-left corner of the right-hand pane in Xcode, select your app's target.
    5. Navigate to the Capabilities tab.
    6. Enable Push Notifications.
    7. Check Remote Notifications and Background Fetch from Enabling Background Modes.




  4. APNs (Apple's Push Notification service) currently supports two types of connections: token-based (.p8) and certificate-based (.p12).you can follow either one of them

  5. For Token-based (.p8).

  6. Log in to the Apple Developer Portal.
  7. Navigate to Certificates, IDs & Profiles > Identifiers > App IDs and click the App ID associated with your app.
  8. On the screen for your App ID, check Capabilities > Push Notifications.





  9. Select App ID in next page & click continue.
  10. And then create Development SSL Certificate & Production SSL Certificate by adding CSR certificate. follow Apple's Create a certificate signing request instructions.
  11. Navigate to Certificates, IDs & Profiles > Keys Section and add a Universal key for Notifications,which you can use for more than one apps as well.




  12. Just save and Download & keep it safe, as it will be downloaded only once.



  13. Then go to Firebase and add this .p8 file along with Your Key ID and Team ID.




  14. FOR certificate-based (.p12) :


  15. Log in to the Apple Developer Portal.
  16. Navigate to Certificates, IDs & Profiles > Identifiers > App IDs and click the App ID associated with your app.
  17. On the screen for your App ID, check Capabilities > Push Notifications.
  18. Click Save and respond to the Modify App Capabilities dialog box that appears.
  19. To create the certificate, we will use to communicate with Apple when sending push notifications:
    • In a new browser tab, follow Apple's Create a certificate signing request instructions.
    • In the Apple Developer Portal, navigate back to your App ID.
    • Click Capabilities > Push Notifications > Configure.
    • Click one of the following buttons:
      • Development SSL Certificate > Create Certificate (for testing push notifications while developing an iOS app)
      • Production SSL Certificate > Create Certificate (for sending push notifications in production)
    • Click Choose File and select the certificate signing request you created above.
    • Click Continue.
    • Click Download to download the certificate.
    • Use this file to export a .p12 file in the next step.
  20. Navigate in the Apple Developer Portal to Certificates, IDs & Profiles > Provisioning Profiles.
  21. Click the provisioning profile you'd like to edit.
  22. Edit the provisioning profile as necessary, and click Save.
  23. Click Download, and double-click the downloaded provisioning profile to install it.
  24. Make sure your Xcode project is configured to use the provisioning profile as necessary.Next, export the downloaded certificate (.cer file) as a .p12 file that can be uploaded to firebase:
    • On your Mac, double-click the .cer file to open it in Keychain Access.
    • In Keychain Access, in the lower-left corner, select Category > Certificates.
    • Select the certificate to export.
    • Choose File > Export Items.
    • Enter a name in the Save As field.
    • Accept the default .p12 file format and click Save. Respond to the prompts, and enter a password for the file if necessary.
    • Keep track of this file, since you'll upload it to firebase in a later step.
    • Now Goto Firebase Console> Project Settings > Cloud Messaging > Apple app configuration, now upload p8 Cetificate here.
      Please go through this link to learn how to generate p8 certificate link for Firebase Push Notification Certificate Generation

      eRestro Now Paste Key ID and Team ID,the Key ID is the string behind AuthKey in the file name.As for the Team ID, you can get this on your Apple developer account membership page

      eRestro


How to manage payment gatway and add Credential in admin panel?

  1. Go to the panel, in that system > Payment Methods. for any payment method you have to add just key id and secrect key.and if you don't wanat to use then disable from here.

    eRestro

    eRestro

How to Add Map API key for Address?

  1. Go to Google Cloud Platform. Click here
  2. Click on console

    eRestro
  3. Select your Firebase Project

    eRestro
  4. Search for APIs, which are shown in below image.

    eRestro
  5. Click on Enable to, enable that APIs for Maps SDK for Android

    eRestro
  6. Click on Enable to, enable that APIs for Maps SDK for IOS

    eRestro
  7. Click on Enable to, enable that APIs for Maps Geocoding API

    eRestro
  8. Click on Enable to, enable that APIs for Maps Places API

    eRestro
  9. Do above steps for below listed API. (enable all below APIs one by one by searching)

    eRestro
  10. Go to Credential Tab. you will find your Androiod and iOS API keys.

    eRestro

  11. Go to Credential Tab. you will find CREATE CREDENTIALS Click on it -> click on API key.

    eRestro

  12. Place Search API key generate copy key and Go to lib>utils>constants.dart and past in placeSearchApiKey

    eRestro

  13. You have to setup those above API keys for both Platform.
    1. Android Setup
      • Next, open android > app > src > main > AndroidManifest.xml and paste the , placing the android map API key you copied before to replace {{YOUR_ANDROID_MAP_API_KEY}}.


    2. eRestro

    3. iOS Setup
      • Next, open the ios > Runner > AppDelegate.swift file and paste the map api key for ios.
        GMSServices.provideAPIKey("YOUR_IOS_MAP_API_KEY")

    4. eRestro
    5. Add android and ios Map api key for map and place search map api key Go to lib>utils>constants.dart

    6. eRestro


How to Increase Product Load Limit?

  1. you can chnage at a time when request send to server how many item will fetch.go to lib > utils > constants.dart please check below given image.

    eRestro


How to Change Api Parameter And Api Url?

  1. You can change or add api url from lib > utils > api.dart, for api url here all list of api is listed that is used in app.

    eRestro
  2. You can change or add parameter from lib > utils > apiBodyParameterLabels.dart, for api parameter here all list of api paramater is listed that is used in app.

    eRestro


How to get Privacy-Policy URL for PlayStore?

  1. First login to admin panel.
  2. System > Privacy Policy

  3. eRestro

    eRestro


How to Change Predefind Order Cancle Message?

  1. You can change or add predefind order cancle message from lib > utils > constants.dart

  2. eRestro


How to integrate firebase?

  1. Create firebase project in your account
  2. Go to firebase console and then click on add project.

  3. eRestro
  4. After that below given step will come. here you have to enter your project details.Enter your project name and then press on continue.then select email and then press continue.

  5. eRestro
    eRestro
    eRestro
  6. After that your project is created

  7. eRestro

  8. Add flutter application to your firebase project


  9. eRestro
  10. Press next

  11. eBroker
  12. Now to to android studio terminall and run "firebase login" command in terminal, and login to firebase from browser.(Note: if you have any problem during firebase command . You have to solve it by your self. it will not be in our support)
    • Allow Firebase to collect CLI and Emulator Suite usage and error reporting information? set "YES" and press enter
  13. eBroker


  14. Now you need to run command accoring to below image in android studio terminal
  15. eBroker

  16. Now you need to run 2nd command accoring to below image in android studio terminal as well

  17. eBroker

  18. Once show this kind of output press "Enter" in terminal

  19. eBroker

  20. Once again show this kind of output press "y" in terminal

  21. eBroker

  22. Press continue

  23. eBroker

  24. Press continue to console

  25. eBroker

  26. Your firebase setup is done.



Steps to Authenticate OTP using firebase

  1. Open your firebase console.
  2. Go to Authentication and open Sign-in method.
  3. Enable Phone Sign-in method and save.

  4. eRestro
  5. We have to add sha1 and sha256 key in firebase, for that perform below given step for that you can do one of the below command in terminal "keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android"

    eRestro

  6. OR Go to the terminal view and paste- gradlew signingReport as shown in below

    for mac it should be ./gradlew signingReport

    eRestro
    eRestro
    eRestro
  7. Now take debug sha1 and sha256 will print copy that and add it in firebase console.

    eRestro
  8. When we are releasing apk then we need to add release sha1 and sha256 key in firebase panel otherwise otp will not work. for that perform below command in terminal "keytool -list -v -keystore "/Users/hencypithadiya/Documents/WorkSpace/KeyStoreFiles/erestro.jks" -alias key0".

    Replace with your keystoreFiles path: "/Users/hencypithadiya/Documents/WorkSpace/KeyStoreFiles/erestro.jks"
    Replace with your alias: "key0"

    eRestro
  9. For ios you need to set following.
  10. Add custom URL schemes to your Xcode project:
  11. Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.
  12. Click the + button, and add a URL scheme for your reversed client ID. To find this value, open theGoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank.
  13. When completed, your config should look something similar to the following (but with your application-specific values):

  14. eRestro


Steps to Authenticate Google using firebase

  • Open your firebase console.
  • Go to Sign-in method in Authentication.
  • Go to the Google and enable the google sign_in automatically.

    news

    news
  • after press on save button google authentication enable in your app.


Steps to Authenticate Apple using firebase

  • Open your firebase console.
  • Go to Sign-in method in Authentication.
  • Go to the Apple and enable apple sign in.

    news
  • In Xcode, select the Signing & Capabilities tab, and add "Sign In With Apple" as a new Capability then select a team on the Code Signing section. news
  • This will generate and configure an App ID in the "Certificates, Identifiers & Profiles" section of the Apple Developer portal.

  • now enable Google Play Integrity API for use with Firebase Authentication.In the Google Cloud Console, enable the Google Play Integrity API for your project.first make sure your correct project is selected then press enable button.

    news


  • Generate Release bundle for Android

    1. In your android studio, right click on you 'android' module of you flutter project. There is one option 'flutter', click on that. Then click on 'Open android module in android studio'.then generate release apk from that new module.

    2. eRestro

    3. and if in your android studio, the flutter option is disable then go to File option of your android studio. Click on 'Open' option, then locate your flutter project's android module and open it. now generate relase apk from that new module.

    4. eRestro

      eRestro

      eRestro

      eRestro

    5. Wait for build process to finish. If build finish successfully then, in Build menu you will get option 'generate signed bundle/apk'.
    6. Choose 'Android App Bundle' here

    7. eRestro

    8. If you are creating apk for first time then click on 'Create New' for Keystore path (and save this file for future use). for subsequent version updates always choose existing keystore file
    9. Fill all required information and click next

    10. eRestro

    11. from options, choose 'release'

    12. eRestro

  • OR
    1. Create an upload keystore
      Running the following at the command line:
      • On Mac/Linux, use the following command:

        keytool -genkey -v -keystore /upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload

      • On Windows, use the following command:

        keytool -genkey -v -keystore c:\Users\USER_NAME\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload

      eRestro

    2. Run following commands in Terminal as per your need:
      • To generate an APK
        flutter build apk
      • To generate an App Bundle
        flutter build appbundle

      • eRestro



    How to Release an iOS App on the App Store?

    1. Open your Project's Runner.xcworkspace file in Xcode, and Add your Team [Your Apple Developer ID] and also Insert GoogleService-Info.plist file [Downloaded From Firebase Project] inside folder named Runner.

    2. eRestro
    3. and then Select Any iOS Device (armv7,arm64) as shown in image below.

    4. eRestro
    5. After that Select Archive From Product Menu of Xcode as shown below.

    6. eRestro

    7. Once Build / Archive Generated, pop up window will be shown. Validate app First, and After Successfull Validation of App, You Can Distribute App to AppStore.
    8. eRestro
    9. After SuccessFull Submission of Build File, it will be Reflected to your Apple Developer Account in which we have created app with same Bundle ID.
    10. Click here for Detailed Help

    Recommended tutorial >>


    How to solve Data Safety Issue in play store?

    Recommended tutorial >>


    Support

    Its our pleasure to serve our service and support. please contact our support team.

    Head of Customer Support : Hency Pithadiya
    Skype: Hency Pithadiya

    To help our customers, we constantly be in touch with every customer if they need any assistance regarding our product. We offer our customers a support from Mon – Fri 9.00am to 6.00pm IST (GMT +5.30) – We are a Team located in India – Asia.

    Typically we reply our customers for all the questions and queries within 24 hours of time via comments, support forum or emails.


    Your Feedback

    Dear valuable customer, Thank you very much for choosing our product. It's our pleasure to serve top-notch service to you. Please give us your honest feedback that will help us to make a more strong and reliable product by click here Rate Us. Thank you very much.


    Contact Us

    WRTeam has creative and dedicated group of developers who are mastered in Apps Developments and Web Application Development with a niche in delivering quality solutions to customers across the globe. Contact us today to find out how we can help you or for freelance work.

    Visit Us : https://wrteam.in

    Mail Us : support@wrteam.in

    Thank you very much.