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
2022-08-08 15:39:49 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2022-08-08 15:39:49 +0100
Commit
1246dc5900d8805864545bfb1c08a1b36a7955fd
1246dc59
2 parents
5ada76e9
6ee14fac
Merge pull request #2490 from jonataslaw/fix-create
fix Bind.create
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
lib/get_connect/http/src/http/html/http_request_html.dart
lib/get_state_manager/src/simple/get_state.dart
lib/get_state_manager/src/simple/simple_builder.dart
pubspec.yaml
lib/get_connect/http/src/http/html/http_request_html.dart
View file @
1246dc5
import
'dart:async'
;
// ignore: avoid_web_libraries_in_flutter
import
'dart:html'
;
import
'../../certificates/certificates.dart'
;
...
...
lib/get_state_manager/src/simple/get_state.dart
View file @
1246dc5
...
...
@@ -156,6 +156,7 @@ abstract class Bind<T> extends StatelessWidget {
return
_FactoryBind
<
S
>(
create:
builder
,
tag:
tag
,
global:
false
,
);
}
...
...
@@ -462,7 +463,9 @@ class BindElement<T> extends InheritedElement {
}
}
}
else
{
_controllerBuilder
=
widget
.
create
?.
call
(
this
)
??
widget
.
init
;
_controllerBuilder
=
(
widget
.
create
!=
null
?
()
=>
widget
.
create
!.
call
(
this
)
:
null
)
??
widget
.
init
;
_isCreator
=
true
;
_needStart
=
true
;
}
...
...
lib/get_state_manager/src/simple/simple_builder.dart
View file @
1246dc5
...
...
@@ -94,8 +94,11 @@ mixin StatelessObserverComponent on StatelessElement {
List
<
Disposer
>?
disposers
=
<
Disposer
>[];
void
getUpdate
()
{
if
(
disposers
!=
null
&&
!
dirty
)
{
markNeedsBuild
();
// if (disposers != null && !dirty) {
// markNeedsBuild();
// }
if
(
disposers
!=
null
)
{
scheduleMicrotask
(
markNeedsBuild
);
}
}
...
...
pubspec.yaml
View file @
1246dc5
name
:
get
description
:
Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
version
:
5.0.0-beta.5
1
version
:
5.0.0-beta.5
2
homepage
:
https://github.com/jonataslaw/getx
environment
:
...
...
Please
register
or
login
to post a comment