wikiquote 1.0.1
wikiquote: ^1.0.1

Dart native js
Flutter Android iOS web

A starting point for Dart libraries or applications.

example/wikiquote_example.dart

import 'package:wikiquote/wikiquote.dart';

Future<void> main() async {
  var wikiquote = Wikiquote();
  var articles = [
    'Dalai lama',
//    'Albert Einstein',
//    'Ada Lovelace',
//    'Leonard Cohen'
  ];
  for (var lang in wikiquote.supportedLanguages()) {
    print('Language: ${lang}');
    var q = wikiquote.quoteOfTheDay(lang);

    for (var article in articles) {
      print('Article: ${article}');
      var results = await wikiquote.search(article, lang);
//      var results2 = await wikiquote.randomTitles(lang, 10);
//      for (var value in results) {
//        print(value);
//      }
      if (results.isNotEmpty) {
        var quotes = await wikiquote.quotes(results.first, lang, 10);
        for (var value1 in quotes) {
          print(value1);
        }
      }
    }
  }
}
0
likes
75
pub points
0%
popularity

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

flopastor06@gmail.com

License

MIT (LICENSE)

Dependencies

html, http

More

Packages that depend on wikiquote