Search packages, repositories and app categories

Package detailsv1.5.0

random_name_generator

Dart package for the generation of Random Names, based on most common names

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.2K
Likes
23
Pub points
160

Install package

flutter pub add random_name_generator

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart package that generates random names based on commonly used names across various cultures. Ideal for testing and development, it provides a simple API to create realistic placeholder names. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it versatile for cross-platform applications. It is lightweight and easy to integrate via Flutter's pub package manager.

Use cases

  • Testing UI with realistic data
  • Populating mock user profiles
  • Generating sample datasets for apps
  • Simulating user interactions in automated tests
  • Creating dummy content for prototypes

Key features

  • Generates culturally common names
  • Supports multiple platforms
  • Simple and intuitive API
  • Lightweight and fast
  • Open-source with public repository
  • Easy integration via pub add

Suitable for

  • Developers creating test environments
  • Teams building user-facing prototypes
  • Apps requiring fake user data
  • Educational projects involving data simulation
  • Cross-platform Flutter applications

Considerations

  • Names are not guaranteed to be unique
  • Not suitable for production user identities
  • Limited customization of name sources
  • Depends on pre-defined name lists
  • May require updates for new naming trends
  • No built-in support for non-English names beyond common ones

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

GitHub license Version

This package creates random people names to be used in Dart/Flutter apps. The generation is done based in the most common names in each of the selectable zones.

Please star the repo to support the project

Features

Creation of names for a random person, man or woman. Creation of names, surnames or full names. The names are generated randomly based on the list of 100 most common names and surnames.

Usage

RandomNames is a tool class to create random names for specific Zone. To create a RandomNames instance you need to use one of available Zone objects.

var randomNames = RandomNames(Zone.us);

The RandomNames object has several methods to get random people names:

randomNames.name() gives a random first name (man or woman)

randomNames.womanName() gives a random woman first name

randomNames.manName() gives a random man first name

randomNames.surname() gives a random last name

randomNames.fullName() gives a random full name (man or woman)

randomNames.womanFullName() gives a random woman full name

randomNames.manFullName() gives a random man full name

Supported Zones

There are static accessors to the different zones available on the Zone class:

Zone.catalonia
Zone.france
Zone.spain
Zone.uk
Zone.us
Zone.turkey
Zone.germany
Zone.canada
Zone.afghanistan
Zone.austria
Zone.belgium
Zone.brazil
Zone.china
Zone.egypt
Zone.finland
Zone.india
Zone.iran
Zone.israel
Zone.italy
Zone.japan
Zone.poland
Zone.romania
Zone.russia
Zone.saudiArabia
Zone.southAfrica
Zone.switzerland
Zone.uganda
Zone.ukraine
Zone.zimbabwe

Additional information

Feel free to create a pull request to expand the library for other Zones.

Categories

Source repository

Projects using this package

No data available yet.