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
Show 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
1
+
import
'package:get_instance/get_instance.dart'
;
2
+
3
+
void
main
(
)
{
4
+
Get
.
put
(
Foo
());
5
+
6
+
final
foo
=
Get
.
find
<
Foo
>();
7
+
final
foo2
=
Get
.
find
<
Foo
>();
8
+
print
(
foo
==
foo2
);
// true
9
+
}
10
+
11
+
class
Foo
{}
packages/get_instance/lib/get_instance.dart
View file @
5e23f58
1
+
export
'package:get_core/get_core.dart'
;
1
export
'src/bindings_interface.dart'
;
2
export
'src/bindings_interface.dart'
;
2
export
'src/extension_instance.dart'
;
3
export
'src/extension_instance.dart'
;
3
export
'src/get_instance.dart'
;
4
export
'src/get_instance.dart'
;
packages/get_rx/example/main.dart
0 → 100644
View file @
5e23f58
1
+
import
'package:get_rx/get_rx.dart'
;
2
+
3
+
void
main
(
)
{
4
+
var
count
=
0
.
obs
;
5
+
ever
(
count
,
print
);
6
+
count
++;
7
+
count
++;
8
+
count
++;
9
+
count
++;
10
+
count
++;
11
+
count
++;
12
+
}
Please
register
or
login
to post a comment