rebloc 0.3.0+3 copy "rebloc: ^0.3.0+3" to clipboard
rebloc: ^0.3.0+3 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(),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
16
likes
0
pub points
55%
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