Skip to content
pubscout

faker_dart

0.2.3, released a year ago by casvanluijtelaar.com

Generates random fake data like names, addresses, emails, and more for Dart and Flutter.

WASM-ready
$ flutter pub add faker_dart
Source repository

What it does

Provides a wide range of faker methods organized in modules (e.g., name, address, internet). It supports multiple locales and can produce unique values. Includes a templating helper to interpolate faker data into strings.

AI-written summary of version 0.2.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need placeholder data for testing UI or seeding databases
  • You want to quickly generate realistic looking sample content without external services

Skip it when

  • You require deterministic data for reproducible tests without custom seeding
  • You need a full-featured data generation library with schema definitions

Strengths

  • Large variety of data types and locales
  • Simple API with no Flutter-specific dependencies
  • Can generate unique values and supports templating

Weaknesses

  • Limited to random generation, no schema or model integration
  • No built‑in support for data persistence or networking
  • May produce unrealistic data if not carefully configured

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
final faker = Faker.instance;
String name = faker.name.fullName();
String email = faker.internet.email();
print('Name: $name, Email: $email');

Alternatives

Packages that do the same job and could replace faker_dart.

  • acronym

    A simple package to generate acronyms from strings with support for stop words and syllables.

  • sqids

    Generate short YouTube-looking IDs from numbers and decode them back.

  • zxcvbn

    Dart port of Dropbox's zxcvbn password strength estimator library.