Skip to content

Commit 1cee34f

Browse files
committed
beta.2 (fix)
1 parent 4f851bf commit 1cee34f

5 files changed

Lines changed: 24 additions & 7 deletions

File tree

example/counter/pubspec.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ dependencies:
2222
localino_live:
2323
path: ../../modules/localino_live
2424

25-
win32: ^5.9.0
26-
2725
dev_dependencies:
2826
flutter_test:
2927
sdk: flutter

modules/control_config/lib/config.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class ConfigModule extends ControlModule<ControlPrefs> {
2020
@override
2121
int get priority => 100;
2222

23+
ConfigModule() {
24+
initModule();
25+
}
26+
2327
/// Initializes the module by either retrieving an existing [ControlPrefs]
2428
/// instance from the [ControlFactory] or creating a new one if not present.
2529
@override

modules/control_config/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: control_config
22
description: Wrapper around shared_preferences
33
repository: https://github.com/romanbase/flutter_control
4-
version: 1.4.0-beta.1
4+
version: 1.4.0-beta.2
55

66
environment:
77
sdk: '>=3.0.0 <4.0.0'
@@ -18,6 +18,6 @@ dependencies:
1818
shared_preferences: '>=2.0.0 <3.0.0'
1919

2020
dev_dependencies:
21-
lints: ^3.0.0
22-
flutter_lints: ^3.0.0
21+
flutter_test:
22+
sdk: flutter
2323

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import 'package:control_config/config.dart';
2+
import 'package:control_core/core.dart';
3+
import 'package:flutter_test/flutter_test.dart';
4+
5+
void main() {
6+
test('modules', () {
7+
ConfigModule.standalone();
8+
9+
Control.factory.debug = true;
10+
Control.factory.printDebugStore();
11+
12+
expect(Control.factory.containsKey(ControlPrefs), isTrue);
13+
expect(Control.get<ControlPrefs>(), isNotNull);
14+
});
15+
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_control
22
description: Flutter Control is complex library to maintain App and State management, Dependency Injection, Navigation with Routing, Localization and more..
33
repository: https://github.com/romanbase/flutter_control
4-
version: 4.2.0-beta.1
4+
version: 4.2.0-beta.2
55

66
environment:
77
sdk: '>=3.0.0 <4.0.0'
@@ -15,7 +15,7 @@ dependencies:
1515
control_core: ">=2.0.0-beta.2 <3.0.0"
1616

1717
# https://pub.dev/packages/control_config
18-
control_config: ">=1.4.0-beta.1 <2.0.0"
18+
control_config: ">=1.4.0-beta.2 <2.0.0"
1919

2020
dev_dependencies:
2121
flutter_test:

0 commit comments

Comments
 (0)