A cordova app that is capable of running flutter app inside
Tested ✔️ OK
In ❤️ with cordova community
You can clone this 📁 and start your desired application
- Android
- iOS
-
Flutter installation should be completed.
To install flutter follow this https://flutter.dev/docs/get-started/install
-
Cordova version requirements are there , for more info follow the plugin documentation https://www.npmjs.com/package/cordova-plugin-flutter , for english version of the same refere ##plugin documentation section below
-
Create a cordova project
cordova create cordova_flutter
. Replacecordova_flutter
with your project name -
Add platform
cordova add platform android
-
Add cordova-plugin-flutter to your project
cordova plugin add cordova-plugin-flutter
-
Now a
flutter_module
folder is being created inside the project directory. Never change name of the directory. -
When you go inside same folder you will get a flutter project structure inside that. Write your flutter codes inside the
flutter_module/lib/
. -
That's it now you can run flutter inside cordova. Use
cordova run android
will not work here usecordova build android
instead.
-
In some systems,
repositories.gradle
file remains missing , you have to add a blankrepositories.gradle
file to the location, which its prompting in terminal error. -
In some computers you have to make new cordova project to make this work.
- Use google translator to read in English https://www.npmjs.com/package/cordova-plugin-flutter
🧔 👧 👩🦱 Any one interested to have a collaboration for performance improvement can mail me at anshuman@upstageindia.in
Thanks to ❤️ @waitaction for such awesome plugin.