Generate your Flutter mobile App (Android / iOS) for JHipster
This is a JHipster module.
Get started and (Full not yet) documentation on my blog here
- Screen
- Main
- Register
- Login
- User preferences
- Theming
- All styles in one place
- Light theme for now
- Full I18n support
- EN, FR for now
- Automatic generation with IntelliJ plugin or VS code plugin
- Detecting device locale
- Change language in user preferences UI
- Apply the preferred locale instead of the device one
- BLoC Architecture More informations
- JSON serializer / deserializer Java Jackson like More informations
- Language choice
- Java / Kotlin for Android
- Objective C / Swift for iOS
- Profiles / Environments
- Dev
- Prod
- IntelliJ Config file for dev and prod profile
Generate your entity from your jhipster project
- One by one
- All your entities
More informations here
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
- Installing JHipster (6.x.x or 7.x.x)
- Installing Flutter SDK (2.0.x)
- Generating your app with
jhipster
To install this blueprint:
npm install -g generator-jhipster-flutter-merlin
To update this blueprint:
npm update -g generator-jhipster-flutter-merlin
To install this blueprint:
yarn global add generator-jhipster-flutter-merlin
To update this blueprint:
yarn global upgrade generator-jhipster-flutter-merlin
To use this blueprint, run
yo jhipster-flutter-merlin
During development of module, please note the below steps. They are very important.
- Clone the projects
You'll probably need the current master of generator-jhipster :
- fork generator-jhipster:
https://github.com/jhipster/generator-jhipster/fork
- clone locally your fork:
git clone https://github.com/<your_username>/generator-jhipster
cd generator-jhipster
git remote add upstream https://github.com/jhipster/generator-jhipster
- so you'll be able to update regularly your fork, using
git fetch upstream && git checkout master && git rebase upstream/master
npm ci
npm link
Then, about jhipster-flutter :
- fork jhipster-flutter:
https://github.com/jhipster/jhipster-flutter/fork
- clone locally your fork:
git clone https://github.com/<your_username>/jhipster-flutter
cd jhipster-flutter
git remote add upstream https://github.com/jhipster/jhipster-flutter
- so you'll be able to update regularly your fork, using
git fetch upstream && git checkout master && git rebase upstream/master
npm ci
npm link
npm link generator-jhipster
- Create a new folder for the app to be generated and link JHipster and your blueprint there
mkdir my-app
cd my-app
npm link generator-jhipster-flutter-merlin
yo jhipster-flutter-merlin
Feel free to help, the project is open to PR
Apache-2.0 © Cyril Casaucau