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

套件詳情v2.0.0

flutter_lorem

產生隨機句子和段落(類似於「Lorem Ipsum」生成器)。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2.2萬
喜歡數
82
Pub 分數
160

安裝套件

flutter pub add flutter_lorem

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Flutter Lorem 產生隨機的佔位文字,例如句子和段落,模擬傳統「lorem ipsum」內容的風格。非常適合在實際文字尚未準備好時進行 UI 原型設計。此套件支援多個平台,包括 Android、iOS、Web、macOS、Windows 與 Linux,讓跨平台開發更具彈性。透過簡單的 API,開發者可在設計或測試階段快速插入逼真的虛擬內容到應用程式中。

適用情境

  • UI 原型設計
  • 佔位符文字產生
  • 設計原型
  • 測試佈局響應性
  • 早期應用的內容佔位符

主要特色

  • 跨平台支援
  • 簡單 API
  • 隨機句子和段落生成
  • Lightweight
  • 透過 pub add 輕鬆整合

適合對象

  • 應用設計師
  • 前端開發人員
  • 原型設計團隊
  • UI/UX 測試人員

使用建議

  • 不適合用於生產內容
  • 文本是隨機的且無意義
  • 有限的自定選項
  • 無語言特定變體
  • 依賴外部來源程式碼

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_lorem

A Flutter package for generating random sentences and paragraphs. The output looks similar to the famous "lorum ipsum" placeholder text. Useful when designing user interfaces that require example text:

Neo preclarus, mensa sono. Te laetabilis. Furor supremus mille procella sicut dolor construo illae addo vixi. Ferre uti indagatio post.

Imitabilis singulus receptum facillimus quae, formo vel aliquis epulor ago. Aliud comprehendo, humus quam expositus ops. Revoco donec, feteo fere.

Usage

Import the package:

import 'package:flutter_lorem/flutter_lorem.dart';

Call the lorum function, specifying the number of paragraphs and words to generate.

String text = lorem(paragraphs: 2, words: 60);
print(text);

The above might print:

Qua procella, illo eternus semel cui propello. Arma iniquus tribuo legentis victum tergo victor repeto, multus. Qui volup amita porro perseverantia. Positus lacunar qui praecepio St. Incertus surgo vires nolo.

Cogo, modicus Malbodiensis defigo, maxime nutus. Spectaculum optimus defluo. Locupleto memor tamisium fodio priores, reddo praecox antea, suum. Sitis orbis duro, cedo moris prolusio nimis consui iuvo, imago. Placo novus.

How it works

Sentences are formed from a list of approximately 4000 latin words. Up to two commas are inserted per sentence. Shorter words are favoured 50% of the time, which produces a more natural looking sentence.

Words are selected randomly. The sentences are not valid latin!

所屬分類

原始碼儲存庫

使用此套件的專案