From the course: Flutter Essential Training: Build for Multiple Platforms

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Plugins vs. packages

Plugins vs. packages

- I'm constantly mentioning packages and plugins and you might be wondering what is the difference between the two? Here I've opened to popular Flutter projects that are used as dependencies in Flutter app. One is the device info plus package that tells you the device information of the device you're running the project on. And the second is the HTTP package that helps you make HTTP requests. Now, do you see the difference between both? Here we have the folder example, lib, test and few configuration files. And similarly, here we have Android, example, iOS lib, macOS and few configuration files. So one library has only the lib and the test folder. So basically if they have unit test they will have the test folder. However, the other repo has the Android, iOS and macOS always folder, along with lib because to provide the information of the platform and device the project is running on, Flutter needs to communicate with…

Contents