Giter Site home page Giter Site logo

rvpodhooks's Introduction

Flutter MVC+S Template

Main Packages :

  1. Riverpod, Hooks (State management)
  2. Go Router (Navigation & Routing)
  3. Responsive Framework (Responsive & Auto adapt)
  4. Freezed, Freezed Annotation (Immutable class generator)
  5. Json Serializable, Json Annotation (to & from generator)
  6. Riverpod Lint, Custome Lint (Linter for riverpod)
  7. Build Runner (Dart code generator)

Additional Packages :

  1. Vector Graphics, Vector Graphics Compiler (SVG renderer & optimize)
  2. Shared Preferences (Simple key-value pairs storage)
  3. Intl (Internationalized, date & number format & parse, etc)
  4. Http (Http request)
  5. Animations (Fancy pre-built animations)
  6. Dartx (Collection of useful static extension methods)

Additional Config

Enable Impeller on android (default on next release)

  1. Add this code on AndroidManifest.xml (android/app/src/main/AndroidManifest.xml) below application tag
<meta-data
        android:name="io.flutter.embedding.android.EnableImpeller"
        android:value="true" />

Consume .env on android folder (dart-define method)

  1. Add this code on build.gradle (android/app/build.gradle) above android block
def dartEnvironmentVariables = []
if (project.hasProperty('dart-defines')) {
    dartEnvironmentVariables = project.property('dart-defines')
        .split(',')
        .collectEntries { entry ->
            def pair = new String(entry.decodeBase64(), 'UTF-8').split('=')
            [(pair.first()): pair.last()]
        }
}
  1. Add this code on build.gradle (android/app/build.gradle) inside defaultConfig on android block
android {
    ... Other Code here ...

    defaultConfig {
        ... Other Code here ...

        manifestPlaceholders += [
            GMAP_KEY: dartEnvironmentVariables.GMAP_KEY
        ]
    }

    ... Other Code here ...
}
  1. Usage on AndroidManifest.xml (android/app/src/main/AndroidManifest.xml) above activity tag on application tag
<meta-data android:name="com.google.android.geo.API_KEY"
            android:value="${GMAP_KEY}" />

rvpodhooks's People

Contributors

hasuki69 avatar

Stargazers

 avatar ( ˃̶̤́ ꒳ ˂̶̤̀ ) avatar

Watchers

 avatar

Forkers

andrewcortez1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.