パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.5.0

random_name_generator

最も一般的な名前をもとにランダムな名前を生成するためのDartパッケージ

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1180
いいね数
23
Pub ポイント
160

パッケージをインストール

flutter pub add random_name_generator

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

さまざまな文化で一般的に使われる名前をもとにランダムな名前を生成するDartパッケージです。テストや開発に最適で、現実的なプレースホルダー名を作成するためのシンプルなAPIを提供します。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、クロスプラットフォームアプリケーションに非常に便利です。軽量で、Flutterのpubパッケージマネージャーを通じて簡単に統合できます。

用途

  • 現実的なデータでUIをテストする
  • モックユーザーのプロファイルを埋める
  • アプリ用のサンプルデータセットの生成
  • 自動テストにおけるユーザー操作のシミュレーション
  • プロトタイプ用のダミー コンテンツを作成する

主な機能

  • 文化的に一般的な名前を生成します
  • 複数のプラットフォームをサポートしています
  • シンプルで直感的な API
  • 軽量で高速
  • オープンソース、パブリックリポジトリ
  • pub add を通じた簡単な統合

適している対象

  • テスト環境を構築する開発者
  • ユーザー向けプロトタイプを構築するチーム
  • 偽のユーザー情報が必要なアプリ
  • データシミュレーションを含む教育プロジェクト
  • クロスプラットフォームのFlutterアプリケーション

注意事項

  • 名前は一意であるとは限りません
  • 本番ユーザーIDには適していません
  • 名前のソースのカスタマイズが限定的
  • 事前に定義された名前リストに依存しています
  • 新しい命名のトレンドに対応するための更新が必要になる可能性があります
  • 一般的な名前以外の非英語名前の組み込みサポートはありません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。