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-07-05 16:24:21 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-07-05 16:24:21 -0300
Commit
8738a03cf09b08eaed414d3870c1af2daba53417
8738a03c
1 parent
08b10f4d
Update get_rxstate_test.dart
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
test/get_rxstate_test.dart
test/get_rxstate_test.dart
View file @
8738a03
...
...
@@ -35,16 +35,13 @@ void main() {
onPressed:
()
=>
controller
.
increment
(),
),
GetX
<
Controller2
>(
builder:
(
controller
)
{
return
Text
(
'lazy
${controller.lazy}
'
);
}),
GetX
<
Controller
>(
builder:
(
controller
)
{
return
Container
();
return
Text
(
'lazy
${controller.lazy.value}
'
);
}),
GetX
<
ControllerNonGlobal
>(
init:
ControllerNonGlobal
(),
global:
false
,
builder:
(
controller
)
{
return
Text
(
'single
${controller.nonGlobal}
'
);
return
Text
(
'single
${controller.nonGlobal
.value
}
'
);
})
],
);
...
...
@@ -77,11 +74,11 @@ void main() {
}
class
Controller2
extends
GetxController
{
int
lazy
=
0
;
var
lazy
=
0
.
obs
;
}
class
ControllerNonGlobal
extends
GetxController
{
int
nonGlobal
=
0
;
var
nonGlobal
=
0
.
obs
;
}
class
Controller
extends
GetxController
{
...
...
Please
register
or
login
to post a comment