Skip to content

Commit

Permalink
Merge pull request #711 from Flutterando/feat/710
Browse files Browse the repository at this point in the history
feat: Cubit support
  • Loading branch information
jacobaraujo7 committed May 12, 2022
2 parents 00a98b8 + 7725643 commit e0583d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions plugins/modular_bloc_bind/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1

- fix: Cubit support

## 1.0.0

- Initial version.
2 changes: 1 addition & 1 deletion plugins/modular_bloc_bind/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
flutter:
sdk: flutter
bloc: ^8.0.3
flutter_modular: 5.0.0
flutter_modular: 5.0.1
dartz: ^0.10.0-nullsafety.2
http: ^0.13.0
bloc_concurrency: ^0.2.0
Expand Down
8 changes: 4 additions & 4 deletions plugins/modular_bloc_bind/lib/src/modular_bloc_bind_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_modular/flutter_modular.dart';
import 'package:modular_interfaces/modular_interfaces.dart';

class BlocBind {
static Bind<T> singleton<T extends Bloc>(
static Bind<T> singleton<T extends BlocBase>(
T Function(Injector<dynamic> i) factoryFunction, {
bool export = false,
}) {
Expand All @@ -14,7 +14,7 @@ class BlocBind {
});
}

static Bind<T> lazySingleton<T extends Bloc>(
static Bind<T> lazySingleton<T extends BlocBase>(
T Function(Injector<dynamic> i) factoryFunction, {
bool export = false,
}) {
Expand All @@ -25,7 +25,7 @@ class BlocBind {
});
}

static Bind<T> factory<T extends Bloc>(
static Bind<T> factory<T extends BlocBase>(
T Function(Injector<dynamic> i) factoryFunction, {
bool export = false,
}) {
Expand All @@ -36,7 +36,7 @@ class BlocBind {
});
}

static Bind<T> instance<T extends Bloc>(
static Bind<T> instance<T extends BlocBase>(
T bloc, {
bool export = false,
}) {
Expand Down
6 changes: 3 additions & 3 deletions plugins/modular_bloc_bind/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: modular_bloc_bind
description: Smart project structure with dependency injection and route management
version: 1.0.0
version: 1.0.1
homepage: https://github.com/Flutterando/modular

environment:
Expand All @@ -9,8 +9,8 @@ environment:
dependencies:
bloc: ^8.0.3
stream_transform: ^2.0.0
flutter_modular: ">=5.0.0 <6.0.0"
modular_interfaces: ">=2.0.0 <3.0.0"
flutter_modular: ">=5.0.1 <6.0.0"
modular_interfaces: ">=2.0.1 <3.0.0"
flutter:
sdk: flutter

Expand Down

0 comments on commit e0583d5

Please sign in to comment.