flutter create . You can simply run this from the root of your Flutter project and it will add the required files for all platforms. If you only want to add support for specific enabled platforms, you can do that by supplying the –platforms argument: flutter create –platforms=web,macos .
Read moreHow do I add native code to Flutter?
Writing custom platform-specific code
Read moreHow do you make a Flutter plugin?
How to write a Flutter plugin
Read more