lorem_ipsum_generator 0.0.1 copy "lorem_ipsum_generator: ^0.0.1" to clipboard
lorem_ipsum_generator: ^0.0.1 copied to clipboard

outdated

The lorem_ipsum package is a lightweight and easy-to-use tool for generating random "lorem ipsum" text. It allows users to generate text with a specific number of words or paragraphs and includes a cu [...]

Lorem Ipsum Generator #

A Dart package for generating Lorem Ipsum text.

Installation #

Add this to your pubspec.yaml file:

dependencies:
  lorem_ipsum_generator: ^0.0.1

Then run flutter packages get to install the package.

Usage #

Import the package:

import 'package:lorem_ipsum_generator/lorem_ipsum_generator.dart';

Generating text with a specified number of words #

String text = LoremIpsumGenerator.generate(words: 10);
print(text); // Output: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."

Generating text with a specified number of paragraphs #

String text = LoremIpsumGenerator.generate(paragraphs: 3);
print(text);
/*
Output:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
*/

Generating text with a specified number of words per paragraph #

String text = LoremIpsumGenerator.generate(wordsPerParagraph: 20, paragraphs: 2);
print(text);
/*
Output:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.

Exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
*/
11
likes
0
points
22
downloads

Publisher

verified publishersamankc.com.np

Weekly Downloads

The lorem_ipsum package is a lightweight and easy-to-use tool for generating random "lorem ipsum" text. It allows users to generate text with a specific number of words or paragraphs and includes a customizable list of words for a more natural look and feel. Ideal for developers who need to quickly generate filler text for testing or mockup purposes.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on lorem_ipsum_generator