Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominic-schmid/ipsum
A lorem ipsum text generator for Dart.
https://github.com/dominic-schmid/ipsum
dart dart-library dartlang flutter lorem-ipsum-generator package
Last synced: about 4 hours ago
JSON representation
A lorem ipsum text generator for Dart.
- Host: GitHub
- URL: https://github.com/dominic-schmid/ipsum
- Owner: dominic-schmid
- License: mit
- Created: 2022-10-11T22:21:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T08:26:27.000Z (about 2 years ago)
- Last Synced: 2024-10-14T09:28:23.096Z (about 1 month ago)
- Topics: dart, dart-library, dartlang, flutter, lorem-ipsum-generator, package
- Language: Dart
- Homepage: https://pub.dev/packages/ipsum
- Size: 140 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This package will generate [Lorem ipsum](https://en.wikipedia.org/wiki/Lorem_ipsum) text for your applications.
By default, it takes its source text from Cicero's [De finibus bonorum et malorum](https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum), but you can specify your own source text if you want.You can select:
- words
- sentences
- paragraphsSince this uses the base dart libraries it should also work on every platform.
## Features
You can `enable` and `disable` the first 5 words being "Lorem ipsum dolor sit amet" by toggling `startWithLorem` (defaults to `false`).
You can also pass a custom set of delimiters to delimit sentences and paragraphs (defaults to `. ? !`).
## Usage
```dart
import 'package:ipsum/ipsum.dart';// Create an instance
Ipsum lip = Ipsum();String words = lip.words(4);
/// Illaeffectrix beatae vitae sapientiaString sentences = lip.sentences(1);
/// Igitur, inquam, res tamdissimiles eodem nomine appellas?String paragraphs = lip.paragraphs(1);
/// Utilitatem referantur, virum bonum non posse reperiri deque his rebus satis multa in nostris ...```
## Credits
This package was inspired by the python library [lipsum](https://github.com/thanethomson/lipsum).