Flutter Package vs Plugin
Hi Coders,
Hope you all are doing fine,
Today in this article i'am gonna talk about difference between package and plugin in Flutter ,
If you want to watch video on this topic then you can watch right now on my youtube channel
click here to watch youtube video on this topic 👉 Flutter Package vs Plugin
Today in this article i'am gonna talk about difference between package and plugin in Flutter ,
If you want to watch video on this topic then you can watch right now on my youtube channel
click here to watch youtube video on this topic 👉 Flutter Package vs Plugin
Package:
- It is a library of bunch of code contains some functionality which is used in Flutter apps.
- It only contains the Dart Code means that the package is created with the help of only dart code.
- examples: Provider, Http, intl, gap etc.
Plugin:
- It is also a library of bunch of code BUT it include platform specific code.
- It contains both dart and platform specific code.
- examples: camera, url_launcher and path_provider etc.
Conclusion:
Both works the same and package is pure dart created and plugin is created using dart+platform specific code(android , iOS ).
Both works the same and package is pure dart created and plugin is created using dart+platform specific code(android , iOS ).