Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unacorbatanegra committed Dec 6, 2023
1 parent 2a3c517 commit c945beb
Show file tree
Hide file tree
Showing 10 changed files with 239 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*.iws
.idea/
.fvm/

.vscode/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
Expand Down
38 changes: 0 additions & 38 deletions .vscode/launch.json

This file was deleted.

5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.0.1
## 1.0.1

* TODO: Describe initial release.
- Test added
- `Fix` remove double calling in mixin on listeners.

## 1.0.0

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<!--
<p>
<a href="https://github.com/rrousselGit/riverpod/actions"><img src="https://github.com/rrousselGit/riverpod/workflows/Build/badge.svg" alt="Build Status"></a>
</p> -->

# Occam

Simple state manager based on native fluter stateful for my personal use.

Credits to: @roipeker


## Index

- [Why another state manager?](#why)
Expand Down
221 changes: 221 additions & 0 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
SF:lib/src/lyfe_cicle/state_parent.dart
DA:5,0
DA:9,0
DA:10,0
DA:11,0
DA:13,0
DA:15,0
DA:16,0
DA:17,0
DA:24,0
DA:25,0
DA:30,0
DA:32,0
DA:33,0
DA:36,0
DA:38,0
DA:39,0
DA:40,0
DA:42,0
DA:45,0
DA:47,0
DA:49,0
DA:52,0
DA:54,0
DA:55,0
DA:58,0
DA:60,0
DA:61,0
DA:62,0
DA:68,0
LF:29
LH:0
end_of_record
SF:lib/src/lyfe_cicle/state_widget.dart
DA:4,1
DA:8,3
DA:10,1
DA:11,1
DA:18,3
DA:22,2
DA:23,3
DA:26,1
DA:28,1
DA:29,1
DA:32,1
DA:34,1
DA:35,1
DA:38,0
DA:40,0
DA:41,0
DA:44,1
DA:46,1
DA:47,1
DA:48,2
DA:49,1
DA:50,1
DA:51,2
DA:55,1
DA:58,1
DA:59,1
DA:61,1
DA:62,2
LF:28
LH:25
end_of_record
SF:lib/src/lyfe_cicle/state_controller.dart
DA:7,0
DA:11,0
DA:14,1
DA:17,1
DA:18,0
DA:23,1
DA:27,0
DA:28,0
DA:30,1
DA:33,0
DA:34,1
LF:11
LH:5
end_of_record
SF:lib/src/rx/rx_notifier.dart
DA:4,6
DA:8,4
DA:12,0
DA:13,0
DA:14,0
DA:16,0
DA:19,2
DA:21,2
DA:23,6
DA:26,0
DA:27,0
DA:36,3
DA:38,6
DA:40,3
DA:43,3
DA:45,3
DA:46,6
DA:49,1
DA:50,2
DA:52,0
DA:53,0
DA:54,0
DA:55,0
DA:59,0
DA:60,0
DA:61,0
DA:65,0
DA:66,0
DA:67,0
DA:71,0
DA:73,0
DA:74,0
DA:75,0
DA:76,0
DA:77,0
DA:80,0
DA:86,2
DA:87,4
DA:89,0
DA:91,1
DA:93,1
DA:94,1
DA:95,0
DA:97,2
DA:98,0
DA:100,2
DA:101,1
LF:47
LH:21
end_of_record
SF:lib/src/widgets/rx_widget.dart
DA:7,2
DA:11,2
DA:13,2
DA:14,2
DA:20,2
DA:22,2
DA:23,8
DA:24,8
DA:27,0
DA:29,0
DA:30,0
DA:31,0
DA:33,0
DA:36,2
DA:37,8
DA:39,2
DA:41,8
DA:42,2
DA:45,14
LF:19
LH:14
end_of_record
SF:lib/src/rx/iterables/rx_list.dart
DA:4,2
DA:6,0
DA:7,0
DA:9,0
DA:11,0
DA:12,0
DA:15,1
DA:17,2
DA:18,1
DA:21,1
DA:23,2
DA:24,1
DA:28,0
DA:30,0
DA:31,0
DA:34,1
DA:36,2
DA:37,1
DA:40,0
DA:42,0
DA:43,0
DA:46,0
DA:47,0
DA:48,0
DA:54,1
DA:55,2
DA:57,0
DA:59,0
DA:60,0
DA:65,0
DA:66,0
DA:67,0
LF:32
LH:12
end_of_record
SF:lib/src/rx/primitives/rx_bool.dart
DA:4,0
DA:10,0
DA:16,0
DA:22,0
DA:25,0
DA:27,0
DA:30,0
DA:33,0
DA:34,0
DA:38,0
DA:39,0
DA:40,0
DA:43,0
DA:44,0
LF:14
LH:0
end_of_record
SF:lib/src/rx/extensions/extensions.dart
DA:4,4
DA:8,0
DA:12,2
LF:3
LH:2
end_of_record
SF:lib/src/utils/extension.dart
DA:5,0
DA:8,0
LF:2
LH:0
end_of_record
1 change: 0 additions & 1 deletion lib/src/lyfe_cicle/state_parent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class ParentStateElement<T extends StateController> extends StatelessElement {
@override
void unmount() {
_justMounted = false;
// _otherState.removeDependant(this);
super.unmount();
}

Expand Down
1 change: 0 additions & 1 deletion lib/src/rx/rx_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mixin RxMixin<T> on ValueNotifier<T> {
@override
void addListener(VoidCallback listener) {
_listeners.add(listener);
// super._lis
super.addListener(listener);
}

Expand Down
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.5.1"
test_cov_console:
dependency: "direct dev"
description:
name: test_cov_console
sha256: "73519e8be3689d73f5cffb652c12c310acacf48379396d834da937094836e65e"
url: "https://pub.dev"
source: hosted
version: "0.2.2"
timing:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^1.0.0
build_runner: ^2.4.6
test_cov_console: ^0.2.2

flutter:
1 change: 0 additions & 1 deletion test/lyfe_cicle/state_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ void main() {
);
}

// @GenerateNiceMocks([MockSpec<MyPageController>()])
class MyPageController extends StateController {
final counter = 1.rx;

Expand Down

0 comments on commit c945beb

Please sign in to comment.