11-2 develop plug-ins and flutter package

















Creating a plug-



Click is completed, it will create a flutter plug

this plug-in package, has been created

lib directory is a dart Code flutter plug-ins. Here used MethodChannel

declare dependencies and description of

two of the more important directory and Andrews ios directory

Andrews directory is stored in the plug-in code Andrews

ios directory is stored in the plug-in code ios

this is the native Android code that

ios the corresponding file

Create a flutter package




Lib and pubspec.yaml this package contains two main files and directories only.


dart part of the code

so that the package is not flutter and Andrews ios native code. But the flutter of plug-ins is there

Create a command mode

Plug

This will create asr_plugin this plugin in the current directory


into this directory

Creating a Package



End

 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12311032.html