rebloc 0.4.0 copy "rebloc: ^0.4.0" to clipboard
rebloc: ^0.4.0 copied to clipboard

A state management library for Flutter that combines aspects of Redux and BLoC. Rebloc uses streams and BLoCs to compose middleware and reducers.

example/lib/main.dart

// Copyright 2018 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:example/simple.dart';
import 'package:flutter/material.dart' hide Action;

import 'list.dart';

void main() => runApp(ExampleApp());

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            title: const Text('Rebloc example'),
            bottom: const TabBar(
              isScrollable: true,
              tabs: [
                Tab(text: 'Simple'),
                Tab(text: 'List'),
              ],
            ),
          ),
          body: SafeArea(
            bottom: false,
            child: TabBarView(
              children: [
                SimpleExamplePage(),
                ListExamplePage(),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
17
likes
120
pub points
53%
popularity

Publisher

unverified uploader

A state management library for Flutter that combines aspects of Redux and BLoC. Rebloc uses streams and BLoCs to compose middleware and reducers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, meta, rxdart

More

Packages that depend on rebloc