stream_loader 1.1.0-beta02 copy "stream_loader: ^1.1.0-beta02" to clipboard
stream_loader: ^1.1.0-beta02 copied to clipboard

outdated

A flutter plugin for loading content asynchronously with Dart stream.

example/lib/main.dart

import 'package:example/data/api.dart';
import 'package:example/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_provider/flutter_provider.dart';
import 'package:http/http.dart' as http;

void main() {
  var api = Api(http.Client());
  runApp(
    Provider<Api>(
      child: MyApp(),
      value: api,
    ),
  );
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.dark(),
      home: const HomePage(),
    );
  }
}
10
likes
0
pub points
67%
popularity

Publisher

unverified uploader

A flutter plugin for loading content asynchronously with Dart stream.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_value, disposebag, distinct_value_connectable_stream, flutter, meta, rxdart

More

Packages that depend on stream_loader