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-11-21 11:53:54 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ec5dc31a744d2933d71ab3c4e84f9ddee9093b3
4ec5dc31
1 parent
b9822f2c
cleanup
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
15 deletions
example_nav2/lib/app/modules/home/views/home_view.dart
example_nav2/lib/app/modules/product_details/bindings/product_details_binding.dart
example_nav2/lib/main.dart
lib/get_state_manager/src/simple/get_view.dart
example_nav2/lib/app/modules/home/views/home_view.dart
View file @
4ec5dc3
import
'package:flutter/material.dart'
;
import
'package:get/get.dart'
;
import
'../../../../main.dart'
;
import
'../../../routes/app_pages.dart'
;
import
'../controllers/home_controller.dart'
;
...
...
@@ -9,8 +8,6 @@ class HomeView extends GetView<HomeController> {
const
HomeView
({
Key
?
key
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
final
value
=
Get
.
find
<
Controller
>();
print
(
value
);
return
GetRouterOutlet
.
builder
(
routerDelegate:
Get
.
nestedKey
(
Routes
.
home
),
builder:
(
context
)
{
...
...
example_nav2/lib/app/modules/product_details/bindings/product_details_binding.dart
View file @
4ec5dc3
...
...
@@ -5,7 +5,6 @@ import '../controllers/product_details_controller.dart';
class
ProductDetailsBinding
extends
Binding
{
@override
List
<
Bind
>
dependencies
()
{
print
(
'JDISOJDOSIJOI'
);
return
[
Bind
.
create
<
ProductDetailsController
>(
(
_
)
=>
ProductDetailsController
(
...
...
example_nav2/lib/main.dart
View file @
4ec5dc3
...
...
@@ -5,16 +5,11 @@ import 'package:get/get.dart';
import
'app/modules/splash/controllers/splash_service.dart'
;
import
'app/routes/app_pages.dart'
;
class
Controller
{}
void
main
(
)
{
runApp
(
GetMaterialApp
(
title:
"Application"
,
binds:
[
Bind
.
create
<
Controller
>(
(
_
)
=>
Controller
(),
),
Bind
.
put
(
SplashService
()),
Bind
.
put
(
AuthService
()),
],
...
...
lib/get_state_manager/src/simple/get_view.dart
View file @
4ec5dc3
...
...
@@ -74,19 +74,13 @@ class _GetCache<S extends GetLifeCycleMixin> extends WidgetCache<GetWidget<S>> {
void
onInit
()
{
info
=
Get
.
getInstanceInfo
<
S
>(
tag:
widget
!.
tag
);
print
(
'info:
$info
'
);
_isCreator
=
info
!.
isPrepared
&&
info
!.
isCreate
;
if
(
info
!.
isRegistered
)
{
_controller
=
Get
.
find
<
S
>(
tag:
widget
!.
tag
);
}
print
(
'controller:
$_controller
'
);
print
(
'widget:
$widget
'
);
GetWidget
.
_cache
[
widget
!]
=
_controller
;
print
(
'cache:
${GetWidget._cache}
'
);
super
.
onInit
();
}
...
...
Please
register
or
login
to post a comment