flutter_redurx 1.1.1 copy "flutter_redurx: ^1.1.1" to clipboard
flutter_redurx: ^1.1.1 copied to clipboard

Flutter bindings for ReduRx (A thin layer of a Redux-based state manager on top of RxDart).

example/lib/main.dart

import 'package:flutter/material.dart' hide State;
import 'package:flutter_redurx/flutter_redurx.dart';

import 'app_state.dart';
import 'example1.dart';
import 'example2.dart';

void main() {
  final store =
      Store<AppState>(AppState(title: 'Flutter-ReduRx Demo Title', count: 0));
  runApp(Provider(store: store, child: MyApp()));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter-ReduRx Demo',
      theme: ThemeData(primarySwatch: Colors.pink),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Example2();
  }
}
1
likes
30
pub points
15%
popularity

Publisher

unverified uploader

Flutter bindings for ReduRx (A thin layer of a Redux-based state manager on top of RxDart).

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, redurx

More

Packages that depend on flutter_redurx