dr_plugin
I Plugin
1.1 create plugin (android (Java), ios (Swift)):
-
Step 1: create plugin
-
Step 2: Open terminal and run
cd /Users/ducmng12/Desktop/flutter_project/FlutterPhotoBooth/packages/mason_core
[!TIP] How to get path? select mason_core folder and press: Ctrl/Command + shift + C or press right mouse on mason_core folder and select copy path.
- Step 3: generate form code
mason make dr_plugin -o /Users/ducmng12/Desktop/flutter_project/nice_payment_plugin/lib
- Step 4: Replace
- Replace plugin/lib to lib
- Replace plugin/ios/Classes to Classes
- Replace plugin/example/lib to example/lib
- Replace plugin/android/src/main to main
[!NOTE] Attention your path file! your.domain.{{name.snakeCase()}}