muhammadidrees / quoter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Dart 75.3%Language:HTML 21.6%Language:Swift 2.2%Language:Kotlin 0.7%Language:Objective-C 0.2%