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:28:12 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-06-10 14:28:12 -0300
Commit
eaba784b3889564602979b70c0c5545e552a0172
eaba784b
1 parent
42bf6a0d
Prevent onReady exceptions
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
CHANGELOG.md
lib/src/rx/rx_impl.dart
lib/src/rx/rx_interface.dart
pubspec.yaml
CHANGELOG.md
View file @
eaba784
## [2.12.4]
-
Prevent exceptions on onReady with nullables
## [2.12.3]
-
Fix List lenght == null
## [2.12.2]
-
Fix Workers
...
...
lib/src/rx/rx_impl.dart
View file @
eaba784
...
...
@@ -361,12 +361,11 @@ class ListX<E> extends Iterable<E> implements RxInterface<E> {
addAll
(
items
);
}
List
<
E
>
_value
;
List
<
E
>
get
value
{
if
(
getObs
!=
null
)
{
getObs
.
addListener
(
subject
.
stream
);
}
return
_
value
;
return
_
list
;
}
String
get
string
=>
value
.
toString
();
...
...
@@ -381,8 +380,8 @@ class ListX<E> extends Iterable<E> implements RxInterface<E> {
}
set
value
(
Iterable
<
E
>
val
)
{
if
(
_value
==
val
)
return
;
_value
=
val
;
if
(
_list
==
val
)
return
;
_list
=
val
;
subject
.
add
(
null
);
}
...
...
lib/src/rx/rx_interface.dart
View file @
eaba784
...
...
@@ -41,7 +41,7 @@ abstract class DisposableInterface {
/// Do not overwrite this method.
void
onStart
()
{
onInit
();
SchedulerBinding
.
instance
.
addPostFrameCallback
((
_
)
=>
onReady
());
SchedulerBinding
.
instance
?
.
addPostFrameCallback
((
_
)
=>
onReady
());
}
/// Called Called immediately after the widget is allocated in memory.
...
...
pubspec.yaml
View file @
eaba784
name
:
get
description
:
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
version
:
2.12.
2
version
:
2.12.
4
homepage
:
https://github.com/jonataslaw/get
environment
:
...
...
Please
register
or
login
to post a comment