rebloc 0.3.0+4 copy "rebloc: ^0.3.0+4" to clipboard
rebloc: ^0.3.0+4 copied to clipboard

outdated

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
30
pub points
40%
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

License

unknown (LICENSE)

Dependencies

flutter, meta, rxdart

More

Packages that depend on rebloc