Quantcast
Channel: Using Webfeed in Flutter - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Using Webfeed in Flutter

$
0
0

I am developing an app in flutter where I want to show an RSS feed with the webfeed plugin.

I am following the example exactly, but the only thing that is printed is:

Instance of 'RssFeed'

Shouldn't it print the whole RSS feed? Or have I understood something wrong?

The code:

import 'package:flutter/material.dart';import 'package:http/http.dart' as http;import 'package:webfeed/webfeed.dart';class Food extends StatelessWidget{  final client = http.Client();  rssStream(){    client.get("https://developer.apple.com/news/releases/rss/releases.rss").then((response) {      return response.body;    }).then((bodyString) {      var channel = new RssFeed.parse(bodyString);      print(channel);      return channel;    });}  @override  Widget build(BuildContext context) {    return Scaffold(      appBar: AppBar(        leading: Image.asset('assets/icon.png'),        title: Text('App'),      ),      body: rssStream(),    );  }}

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images