pub.dev package manager

The official package repository for Dart and Flutter apps.

Supported by Google

Flutter Favorites

Some of the packages that demonstrate the highest levels of quality, selected by the Flutter Ecosystem Committee

path_provider

Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.

shared_preferences

Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.

toggle_switch

Toggle Switch - A simple toggle switch widget. It can be fully customized with desired icons, width, colors, text, corner radius etc. It also maintains selection state.

freezed

Code generation for immutable classes that has a simple syntax/API without compromising on the features.

Trending packages

Top trending packages in the last 30 days

serverpod_argon2

Argon2 password hashing (argon2id, argon2i, argon2d) backed by the Zig standard library. Ships prebuilt native libraries for Dart and Flutter and a WebAssembly module for the web, so no local toolchai [...]

insert_affiliate_flutter_sdk

A Flutter SDK for integrating affiliate tracking and in-app purchases for the Insert Affiliate Platform.

http_client_interceptor

A Dart package for intercepting and modifying HTTP requests and responses, useful for logging, authentication, and error handling.

http_client_logger

Dart package that seamlessly adds HTTP traffic logging to your Dart or Flutter project.

inject_annotation

Constructor-based dependency injection for Dart and Flutter, inspired by Dagger.

inject_flutter

Flutter integration for inject_annotation. Provides ViewModelFactory and ViewModelBuilder to inject ViewModels into widgets with automatic lifecycle management, plus SubcomponentBuilder to own a @subc [...]

Top Flutter packages

Some of the top packages that extend Flutter with new features

json_serializable

Automatically generate code for converting to and from JSON by annotating Dart classes.

mask_text_input_formatter

The package provides TextInputFormatter for TextField and TextFormField which format the input by a given mask.

flutter_dotenv

Easily configure any flutter application with global variables using a `.env` file.

auto_route

AutoRoute is a declarative routing solution, where everything needed for navigation is automatically generated for you.

flutter_secure_storage

A Flutter plugin for securely storing sensitive data using encrypted storage.

file_picker

A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.

Top Dart packages

Some of the top packages for any Dart-based app or program

pdf

A pdf producer for Dart. It can create pdf files for both web or flutter.

flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.

talker

Advanced error handler and logger package for flutter and dart. App monitoring, logs history, report sharing, custom logs, and etc.

icons_launcher

A command-line tool that simplifies the task of updating your Flutter app's launcher icon.

crypto

Implementations of SHA, MD5, and HMAC cryptographic functions.

mason_cli

Mason CLI allows developers to create and consume reusable templates called bricks.

Package of the Week

Package of the Week is a series of quick, animated videos, each of which covers a particular package

dart_mcp (Package of the Week)
camera (Package of the Week)
path_provider (Package of the Week)
Firebase Analytics (Package of the Week)