Commit 13913018 authored by Tim Smart's avatar Tim Smart

3.0.0

parent 4d0ec640
## 3.0.0
- Update for `bloc_stream` v3
## 2.1.0
- Update for `provider` v4
......
......@@ -11,11 +11,11 @@ class CounterBloc extends BlocStream<int> {
int get initialValue => 0;
void increment() {
subject.add(value + 1);
add(value + 1);
}
void decrement() {
subject.add(value - 1);
add(value - 1);
}
}
......
......@@ -18,7 +18,7 @@ class BlocStreamBuilder<B extends BlocStream<S>, S> extends StatelessWidget {
final actualBloc = bloc ?? BlocStreamProvider.of<B>(context);
return StreamBuilder<S>(
stream: actualBloc.stream.distinct(),
stream: actualBloc.distinct(),
initialData: actualBloc.value,
builder: builder,
);
......
......@@ -61,7 +61,7 @@ class BlocStreamProvider<T extends BlocStream<dynamic>>
This can happen if the context you used comes from a widget above the BlocStreamProvider.
The context used was: $context
The context used was: ${context}
""",
);
}
......
name: flutter_bloc_stream
description: Helper package for using bloc_stream with Flutter. Includes BlocStreamProvider and BlocStreamBuilder.
version: 2.1.0
version: 3.0.0
homepage: https://gitlab.com/arisechurch/bloc_stream
environment:
......@@ -9,7 +9,7 @@ environment:
dependencies:
flutter:
sdk: flutter
bloc_stream: ">= 2.0.0 < 3.0.0"
bloc_stream: ">= 3.0.0 < 4.0.0"
provider: ">= 4.0.0 < 5.0.0"
dev_dependencies:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment