stream_loader 1.5.0 copy "stream_loader: ^1.5.0" to clipboard
stream_loader: ^1.5.0 copied to clipboard

A Flutter plugin for loading content asynchronously with Dart stream and RxDart. RxDart loader bloc. Reactive loader bloc. Simple reactive state management container.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_provider/flutter_provider.dart';
import 'package:http/http.dart' as http;

import 'data/api.dart';
import 'home_page.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.dark(),
      home: const HomePage(),
    );
  }
}
10
likes
150
pub points
67%
popularity

Publisher

unverified uploader

A Flutter plugin for loading content asynchronously with Dart stream and RxDart. RxDart loader bloc. Reactive loader bloc. Simple reactive state management container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

disposebag, flutter, meta, rxdart_ext

More

Packages that depend on stream_loader