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
Jonatas
2020-09-19 13:24:43 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e23f58c65e4761ad3c0163a979bda978a699d20
5e23f58c
1 parent
12ae841f
added example to dart packages
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
packages/get_instance/example/main.dart
packages/get_instance/lib/get_instance.dart
packages/get_rx/example/main.dart
packages/get_instance/example/main.dart
0 → 100644
View file @
5e23f58
import
'package:get_instance/get_instance.dart'
;
void
main
(
)
{
Get
.
put
(
Foo
());
final
foo
=
Get
.
find
<
Foo
>();
final
foo2
=
Get
.
find
<
Foo
>();
print
(
foo
==
foo2
);
// true
}
class
Foo
{}
...
...
packages/get_instance/lib/get_instance.dart
View file @
5e23f58
export
'package:get_core/get_core.dart'
;
export
'src/bindings_interface.dart'
;
export
'src/extension_instance.dart'
;
export
'src/get_instance.dart'
;
...
...
packages/get_rx/example/main.dart
0 → 100644
View file @
5e23f58
import
'package:get_rx/get_rx.dart'
;
void
main
(
)
{
var
count
=
0
.
obs
;
ever
(
count
,
print
);
count
++;
count
++;
count
++;
count
++;
count
++;
count
++;
}
...
...
Please
register
or
login
to post a comment