What is Pubspec?

The pubspec file specifies dependencies that the project requires, such as particular packages (and their versions), fonts, or image files . It also specifies other requirements, such as dependencies on developer packages (like testing or mocking packages), or particular constraints on the version of the Flutter SDK.

Read more

How do Flutter packages work?

In Flutter, Dart organizes and shares a set of functionality through a package. Flutter always supports shared packages , which is contributed by other developers to the Flutter and Dart ecosystem. The packages allow us to build the app without having to develop everything from scratch.

Read more

How do I update a pub package?

First, comment that the packaging line in the pubspec. yaml file and run flutter pub get after successfully get packages to uncomment that line (if you want to upgrade/downgrade to a specific version that mentioned version too) it will upgrade to the latest version.

Read more