Flutter Gems

Browse 4600+ useful Dart & Flutter packages that are neatly categorized!

Twitter Subscribe Medium LinkedIn

Top Flutter Code Generator and Serialization (JSON) packages

The complete list of Dart and Flutter Code Generation, JSON Serialization and Annotation packages is provided below.


json_serializable
Null safety 👍 2.2K

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

freezed
Null safety 👍 2.1K

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

flutter_gen
Null safety 👍 652

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

json_annotation
Null safety 👍 643

Classes and helper functions that support JSON code generation via the 'json_serializable' package.

pigeon
Null safety 👍 537

Code generator tool to make communication between Flutter and the host platform type-safe and easier.

mobx_codegen
Null safety 👍 233

Code generator for MobX that adds support for annotating your code with @observable, @computed, @action and also creating Store classes.

freezed_annotation
Null safety 👍 225

Annotations for the freezed code-generator. This package does nothing without freezed too.

hive_generator
Null safety 👍 215

Extension for Hive. Automatically generates TypeAdapters to store any class.

dart_json_mapper
Null safety 👍 209

This package allows programmers to annotate Dart objects in order to serialize / deserialize them from / to JSON.

swagger_dart_code_generator
Null safety 👍 175

Have you been turned into a problem with writing code for Http requests? This package can help. It has all of the Http and model codegen functionality you have been looking for.

ffigen
Null safety 👍 148

Generator for FFI bindings, using LibClang to parse C header files.

built_value_generator
Null safety 👍 112

Value types with builders, Dart classes as enums, and serialization. This library is the dev dependency.

copy_with_extension_gen
Null safety 👍 111

Automatically generating 'copyWith' extensions code for classes with '@CopyWith()' annotation.

source_gen
Null safety 👍 91

Source code generation builders and utilities for the Dart build system

flutter_gen_runner
Null safety 👍 60

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

retrofit_generator
Null safety 👍 57

retrofit generator is an dio client generator using source_gen and inspired by Chopper and Retrofit.

injectable_generator
Null safety 👍 57

Injectable is a convenient code generator for get_it. Inspired by Angular DI, Guice DI and inject.dart.

openapi_generator
Null safety 👍 51

Generator for openapi client sdk inspired by the npm implementation of openapi-generator-cli.

graphql_codegen
Null safety 👍 49

Simple, opinionated, codegen library for GraphQL. It allows you to generate serializers and client helpers to easily call and parse your data.

protoc_plugin
Null safety 👍 47

Protoc compiler plugin to generate Dart code

dart_mappable
Null safety 👍 45

Improved json serialization and data classes with full support for generics, inheritance, customization and more.

json_to_model
Null safety 👍 38

Generate model class from Json file.

flutter_asset_generator
Null safety 👍 35

Automatically generate a resource file by scanning pubspec.yaml to correspond to the flutter's asset, imitation R file short name.

json_model
Null safety 👍 32

Gernerating Dart model class from Json files with one command.

stacked_generator
Null safety 👍 25

Stacked Generator is a package dedicated to reduce the boilerplate required to setup a stacked application

modular_codegen
Null safety 👍 24

Code Generate for flutter_modular. Inject Automation. Annotation @Inject, @Param and @Data.

gate_generator
Null safety 👍 20

Dependency Injection generator for your flutter/dart applications. This uses annotations and build_runner.

simple_json
Null safety 👍 19

Simple way to dynamically convert from and to JSON using build-time generators given a type.

sqfentity_gen
Null safety 👍 16

SqfnEntity Model Generator. SQLite ORM for Flutter lets you build and execute SQL commands easily and quickly with the help of fluent methods similar to .Net Entity Framework.

functional_data
Null safety 👍 15

Annotations and helpers for lenses for code generated with the 'function_data_generator' package.

gql_build
Null safety 👍 13

Useful builders for your GraphQL SDL and documents. Based on package:gql_code_builder and package:build

ferry_generator
Null safety 👍 13

Generated types for Ferry GraphQL Client

widgetbook_generator
Null safety 👍 12

A package to automate setup and maintanance of the widgetbook package by using code generation.

sum_types
Null safety 👍 12

sum_types and sum_types_generator packages together define a code generator enabling sum-types in Dart.

drift_dev
Null safety 👍 12

Dev-dependency for users of drift. Contains a the generator and development tools.

build_cli
Null safety 👍 11

Parse command line arguments directly into an annotation class using the power of build_runner and source_gen.

kiwi_generator
Null safety 👍 9

Generates dependency injection code using the kiwi package to reduce development time.

isar_generator
Null safety 👍 9

Code generator for the Isar Database. Finds classes annotated with @Collection.

widgetbook_annotation
Null safety 👍 8

A package featuring the annotations used by widgetbook_generator.

dart_json_mapper_mobx
Null safety 👍 7

This is a dart-json-mapper complementary package provides support for MobX Stores to persist as JSON.

chopper_built_value
Null safety 👍 5

A built_value based Converter for Chopper.

json_to_dart
Null safety 👍 4

A library that generates Dart classes (parse and generator included) from a json string.

dart_json_mapper_flutter
Null safety 👍 4

This is a dart-json-mapper complementary package provides support for flutter types in order to serialize / deserialize them from / to JSON.

gql_code_builder
Null safety 👍 2

Dart code builders taking *.graphql documents and SDL to build useful classes.

envify_generator
Null safety 👍 2

Code generator for envify, a better tool to handle environment variables.

doc_widget_annotation
Null safety 👍 2

This is a simple package that contains annotations to generate code in doc_widget

realm_generator
Null safety 👍 1

Generates RealmObject classes from Realm data model classes. This package is part of the official Realm Flutter and Realm Dart SDKs.

flamingo_generator
Null safety 👍 1

Automatically generate code for converting flamingo JSON by annotating Dart classes.

flamingo_annotation
Null safety 👍 1

Automatically generate code for converting flamingo JSON by annotating Dart classes.

dart_json_mapper_fixnum
Null safety 👍 1

This is a dart-json-mapper complementary package provides support for https://pub.dev/packages/fixnum types in order to serialize / deserialize them from / to JSON.

dart_json_mapper_built
Null safety 👍 1

This is a dart-json-mapper complementary package provides support for https://pub.dev/packages/built_collection types in order to serialize / deserialize them from / to JSON.

brick_build
Null safety 👍 1

Code generation library and interface for Brick components. Useful for creating serdes generators for adapters.

simple_auth_generator
Null safety 👍 0

simple_auth is an http client generator using source_gen and inspired from retrofit and chopper

carp_study_generator
Null safety 👍 0

Utilities for generating CARP Mobile Sensing studies

brick_sqlite_generators
Null safety 👍 0

Code generation library for the SQLite providers, models, and adapters in Brick

brick_rest_generators
Null safety 👍 0

Code generation library for the REST providers, models, and adapters in Brick

brick_offline_first_with_rest_build
Null safety 👍 0

Code generation library for the Brick Offline First Domain using REST

brick_offline_first_with_graphql_build
Null safety 👍 0

Code generation library for the Brick Offline First Domain using GraphQL

brick_offline_first_build
Null safety 👍 0

Code generation library for the Brick Offline First Domain

brick_json_generators
Null safety 👍 0

Code generation library for the JSON-like providers, models, and adapters in Brick

brick_graphql_generators
Null safety 👍 0

Code generation library for the GraphQL providers, models, and adapters in Brick

borsh_annotation
Null safety 👍 0

Annotation used to make a Dart object borsh serializable.

framy_annotation
👍 30

Annotations for framy_generator. This package does nothing without framy_generator.

json_utilities
👍 7

A collection of json utilities to enhance the experience of working with json based models.