搜尋套件、儲存庫與 APP 分類

套件詳情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 應用程式

使用建議

  • 名稱不保證唯一
  • 不適用於生產環境使用者身分
  • 名稱來源的自訂有限
  • 依賴預定義的名稱清單
  • 可能需要更新以適應新的命名趨勢
  • 對非英文名稱的支援僅限於常見名稱,無內建支援

原始 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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。