Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonny Borges
2020-06-10 14:07:17 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-06-10 14:07:17 -0300
Commit
42bf6a0da05529d77523b0c8ddadd86ce38c8ea3
42bf6a0d
1 parent
04d566fb
update to get 2.12.2
fix workers
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
CHANGELOG.md
lib/src/rx/rx_event.dart
pubspec.yaml
CHANGELOG.md
View file @
42bf6a0
## [2.12.2]
-
Fix Workers
## [2.12.1]
-
Added: onReady on Controllers LifeCycle
-
Added: Observable maps
...
...
lib/src/rx/rx_event.dart
View file @
42bf6a0
...
...
@@ -6,7 +6,7 @@ void ever(RxInterface listener, Function(dynamic) callback,
{
bool
condition
=
true
})
{
listener
.
subject
.
stream
.
listen
((
event
)
{
if
(
condition
)
{
callback
(
event
.
$new
);
callback
(
event
);
}
});
}
...
...
@@ -18,7 +18,7 @@ void once(RxInterface listener, Function(dynamic) callback,
if
(!
condition
)
return
null
;
times
++;
if
(
times
<
2
)
{
callback
(
event
.
$new
);
callback
(
event
);
}
});
}
...
...
@@ -31,7 +31,7 @@ void interval(RxInterface listener, Function(dynamic) callback,
debounceActive
=
true
;
await
Future
.
delayed
(
time
??
Duration
(
seconds:
1
));
debounceActive
=
false
;
callback
(
event
.
$new
);
callback
(
event
);
});
}
...
...
@@ -40,7 +40,7 @@ void debounce(RxInterface listener, Function(dynamic) callback,
final
_debouncer
=
Debouncer
(
delay:
time
??
Duration
(
milliseconds:
800
));
listener
.
subject
.
stream
.
listen
((
event
)
{
_debouncer
(()
{
callback
(
event
.
$new
);
callback
(
event
);
});
});
}
...
...
pubspec.yaml
View file @
42bf6a0
name
:
get
description
:
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
version
:
2.12.
1
version
:
2.12.
2
homepage
:
https://github.com/jonataslaw/get
environment
:
...
...
Please
register
or
login
to post a comment