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

A flutter pacakge that returns random quote.

Quoter #

A flutter pacakge that returns random quote from a community contributed quotation repository.

Getting started #

Simply add quoter to the dependencies of the pubspec.yaml

dependencies:
  quoter: <latest version>

Usage #

The package return quote in the form of Quote model. A Quote consist of two string values.

// the quote itself
final String quotation;

// the person with whom the quote is associated with
final String quotee;

To use the package create instance of the Quoter class than use method getRandomQuote() to get a random quote.

Quoter quoter = Quoter();

// gets a random quote
Quote randomQuote = quoter.getRandomQuote();

All quotes can also be accessed using the getter getAllQuotes.

// gets list of all quotes
List<Quote> getAllQuotes = quoter.getAllQuotes;

Contribution #

Do you have a favorite quote? Contribute to this repo and share it with all of us. 😄

Read the guide for more details.

Maintainers #

1
likes
130
pub points
62%
popularity

Publisher

unverified uploader

A flutter pacakge that returns random quote.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, flutter

More

Packages that depend on quoter