no_bloc 0.1.0 copy "no_bloc: ^0.1.0" to clipboard
no_bloc: ^0.1.0 copied to clipboard

discontinuedreplaced by: ezbloc_flutter
outdated

Making blocs easy again. A simplified library for the original bloc approach.

example/main.dart

import 'package:no_bloc/no_bloc.dart';

class CounterBloc extends Bloc<CounterBloc, int> {
  CounterBloc() : super(initialState: 0);

  void increment() => setState(value + 1);

  void decrement() => setState(value - 1);
}

void main() {
  final bloc = CounterBloc();

  bloc.state.listen((s) => print(s));

  bloc.increment();
  bloc.decrement();
}
6
likes
0
pub points
6%
popularity

Publisher

verified publishermuha.dev

Making blocs easy again. A simplified library for the original bloc approach.

Homepage

License

unknown (license)

Dependencies

built_value, equatable, hive, meta, path, rxdart, synchronized, test

More

Packages that depend on no_bloc