The Webfeed Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

25 lignes
612 B

  1. import 'package:http/http.dart' as http;
  2. import 'package:webfeed/webfeed.dart';
  3. void main() {
  4. var client = new http.Client();
  5. // RSS feed
  6. client.get("https://developer.apple.com/news/releases/rss/releases.rss").then((response) {
  7. return response.body;
  8. }).then((bodyString) {
  9. var channel = new RssFeed.parse(bodyString);
  10. print(channel);
  11. return channel;
  12. });
  13. // Atom feed
  14. client.get("https://www.theverge.com/rss/index.xml").then((response) {
  15. return response.body;
  16. }).then((bodyString) {
  17. var feed = new AtomFeed.parse(bodyString);
  18. print(feed);
  19. return feed;
  20. });
  21. }