Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

getx lib

image

di pattern

dependency injection is a great design pattern that allows us to eliminate rigid dependencies between elements and it makes the application more flexible, easy to expand scales and maintain.
in the project we use plugin getx to implement di and we have also defined classes so you can easily implement di in the di layer.

routes

we use getx route management to manager routers and use getx bindings for provide dependencies of that route.

network.

 * project can use retrofit to work with the alternative network for http.
 * retrofit is pre-installed in the "apimodule.dart". you can customize it here
 * all interceptors are defined in the /configuration/lib/network/interceptor/* class
 * to work with certificate, please refer to the "/configuration/lib/network/http_overrides.dart" class, with the default the project accept badcertificate

environment settings.

link tutorial: https://www.chwe.at/2020/10/flutter-flavors/

 * all flavor environments are installed in the "/configuration/lib/environment/buid_config.dart" class.
 * basically we are defining 4 development environments: development, staging, preprod and release.
 * run app

you can run the app using the commands only android:

## development: flutter run -t lib/main_dev.dart --debug --flavor dev

## staging: flutter run -t lib/main_stag.dart --debug --flavor stag

## preprod: flutter run -t lib/main_prod.dart --debug --flavor prod
build app

you can build the app using the commands

for android

## development: flutter build apk -t lib/main_dev.dart --flavor dev

## staging: flutter build apk -t lib/main_stag.dart --flavor stag

## preprod: flutter build apk -t lib/main_prod.dart --flavor prod

for ios (updating…)

resources

  * all resources (images, fonts, videos, ...) must be placed in the assets class
  * before using them, please declare the path in constants class and the suffix of the class to be type_provide (image_provide.dart)

json parsing / serialization

this project is implementing json_serializable.
it use build_runner to generate files. if you make a change to these files, you need to re-run the generator using build_runner:

flutter pub run build_runner build

localization

using this library to handle multi-languages. follow this guide to understand and config languages files

hide generated files

in-order to hide generated files, navigate to android studio -> preferences -> editor -> file types and paste the below lines under ignore files and folders section:

*.inject.summary;*.inject.dart;*.g.dart;

in visual studio code, navigate to preferences -> settings and search for files:exclude. add the following patterns:

**/*.inject.summary
**/*.inject.dart
**/*.g.dart

end

                  _oo0oo_
                 o8888888o
                 88" . "88
                 (| -_- |)
                 0  =  /0
               ___/`---'___
             .' \|     |'.
            / \|||  :  |||
           / _||||| -:- |||||- 
          |   | \  -  /|   |
          | _|  ''---/''  |_/ |
            .-__  '-'  ___/-. /
        ___'. .'  /--.--  `. .'___
     ."" '<  `.____<|>_/___.' >' "".
    | | :  `- `.;` _ /`;.`/ - ` : | |
       `_.   _ __ /__ _/   .-` /  /
=====`-.____`.___ _____/___.-`___.-'=====
                  `=---='


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        buddhablessings        nobug

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.