To create a plugin package, use the –template=plugin flag with flutter create . Use the –platforms= option followed by a comma separated list to specify the platforms that the plugin supports . Available platforms are: android , ios , web , linux , macos , and windows .