Giter VIP home page Giter VIP logo

flutter_flavors_demo's Introduction

flutter_flavors_demo

An demo to show how to create Flutter white label apps by flavors

Flavors

  • Check base_app and ext_app folders
  • Check dependencies in ext_app/pubspec.yaml
dependencies:
  flutter_flavors_demo_base_app:
    path: ../base_app
  • Check dependency_overrides in ext_app/pubspec.yaml
dependency_overrides:
  flavor:
    path: flavor
  • Check base_app/flavor/lib/flavor_strings.dart and ext_app/flavor/lib/flavor_strings.dart

Android Localized App Name on Desktop (安卓名稱及圖標本地化)

  • Noted: android:label="@string/app_name in base_app/android/app/src/main/AndoridManifest.xml and in ext_app/android/app/src/main/AndoridManifest.xml
  • Specify app_name in base_app/android/app/src/main/res/values/strings.xml, base_app/android/app/src/main/res/values-zh-rCN/strings.xml, base_app/android/app/src/main/res/values-zh-rTW/strings.xml
  • Specify app_name in ext_app/android/app/src/main/res/values/strings.xml, ext_app/android/app/src/main/res/values-zh-rCN/strings.xml, ext_app/android/app/src/main/res/values-zh-rTW/strings.xml

Icons

  • To change app icons, replace icons in base_app/assets/icon-base.png and ext_app/assets/icon-base.png. And then run "flutter pub run flutter_launcher_icons" in both "base" and "ext_app" folders to generate app icons (執行指令,產生app icons)

flutter_flavors_demo's People

Contributors

vigorox avatar

Watchers

 avatar

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.