Skip to content

Commit e0583d5

Browse files
authored
Merge pull request #711 from Flutterando/feat/710
feat: Cubit support
2 parents 00a98b8 + 7725643 commit e0583d5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1
2+
3+
- fix: Cubit support
4+
15
## 1.0.0
26

37
- Initial version.

plugins/modular_bloc_bind/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies:
3030
flutter:
3131
sdk: flutter
3232
bloc: ^8.0.3
33-
flutter_modular: 5.0.0
33+
flutter_modular: 5.0.1
3434
dartz: ^0.10.0-nullsafety.2
3535
http: ^0.13.0
3636
bloc_concurrency: ^0.2.0

plugins/modular_bloc_bind/lib/src/modular_bloc_bind_base.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_modular/flutter_modular.dart';
33
import 'package:modular_interfaces/modular_interfaces.dart';
44

55
class BlocBind {
6-
static Bind<T> singleton<T extends Bloc>(
6+
static Bind<T> singleton<T extends BlocBase>(
77
T Function(Injector<dynamic> i) factoryFunction, {
88
bool export = false,
99
}) {
@@ -14,7 +14,7 @@ class BlocBind {
1414
});
1515
}
1616

17-
static Bind<T> lazySingleton<T extends Bloc>(
17+
static Bind<T> lazySingleton<T extends BlocBase>(
1818
T Function(Injector<dynamic> i) factoryFunction, {
1919
bool export = false,
2020
}) {
@@ -25,7 +25,7 @@ class BlocBind {
2525
});
2626
}
2727

28-
static Bind<T> factory<T extends Bloc>(
28+
static Bind<T> factory<T extends BlocBase>(
2929
T Function(Injector<dynamic> i) factoryFunction, {
3030
bool export = false,
3131
}) {
@@ -36,7 +36,7 @@ class BlocBind {
3636
});
3737
}
3838

39-
static Bind<T> instance<T extends Bloc>(
39+
static Bind<T> instance<T extends BlocBase>(
4040
T bloc, {
4141
bool export = false,
4242
}) {

plugins/modular_bloc_bind/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: modular_bloc_bind
22
description: Smart project structure with dependency injection and route management
3-
version: 1.0.0
3+
version: 1.0.1
44
homepage: https://github.com/Flutterando/modular
55

66
environment:
@@ -9,8 +9,8 @@ environment:
99
dependencies:
1010
bloc: ^8.0.3
1111
stream_transform: ^2.0.0
12-
flutter_modular: ">=5.0.0 <6.0.0"
13-
modular_interfaces: ">=2.0.0 <3.0.0"
12+
flutter_modular: ">=5.0.1 <6.0.0"
13+
modular_interfaces: ">=2.0.1 <3.0.0"
1414
flutter:
1515
sdk: flutter
1616

0 commit comments

Comments
 (0)