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
2021-07-24 16:50:01 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4fa5f60866210350eae1ef414c879555521d3516
4fa5f608
1 parent
31cce1f0
update to 4.2.5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
35 deletions
CHANGELOG.md
lib/get_instance/src/get_instance.dart
lib/get_navigation/src/root/get_cupertino_app.dart
lib/get_navigation/src/root/get_material_app.dart
pubspec.yaml
CHANGELOG.md
View file @
4fa5f60
##
[
4.2.4
]
-
Added anchorRoute and filterPages to
// anchorRoute: '/',
// filterPages:
##
[
4.2.5
]
-
Added anchorRoute and filterPages to GetRouterOutlet (@ahmednfwela)
-
Added scrollBehavior and scaffoldMessengerKey to GetMaterialapp(@ejabu and @alionour)
-
Fix error when child on MaterialApp is null (@ahmednfwela)
-
Fix Korean docs (@rws08)
-
Fix error with onClose called before routeTransition on Get.offNamed
## [4.2.4]
-
Fix Get.offAll removing GetxServices from memory
...
...
lib/get_instance/src/get_instance.dart
View file @
4fa5f60
...
...
@@ -240,7 +240,7 @@ class GetInstance {
}
for
(
final
element
in
keysToRemove
)
{
reload
(
key:
element
);
reload
(
key:
element
,
closeInstance:
false
);
//_routesKey.remove(element);
}
...
...
@@ -459,7 +459,11 @@ class GetInstance {
});
}
void
reload
<
S
>({
String
?
tag
,
String
?
key
,
bool
force
=
false
})
{
void
reload
<
S
>(
{
String
?
tag
,
String
?
key
,
bool
force
=
false
,
bool
closeInstance
=
true
})
{
final
newKey
=
key
??
_getKey
(
S
,
tag
);
final
builder
=
_getDependency
<
S
>(
tag:
tag
,
key:
newKey
);
...
...
@@ -479,7 +483,7 @@ class GetInstance {
return
;
}
if
(
i
is
GetLifeCycleBase
)
{
if
(
i
is
GetLifeCycleBase
&&
closeInstance
)
{
i
.
onDelete
();
Get
.
log
(
'"
$newKey
" onDelete() called'
);
}
...
...
lib/get_navigation/src/root/get_cupertino_app.dart
View file @
4fa5f60
...
...
@@ -196,6 +196,18 @@ class GetCupertinoApp extends StatelessWidget {
];
}
Widget
defaultBuilder
(
BuildContext
context
,
Widget
?
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
(
child
??
Material
())
:
builder
!(
context
,
child
??
Material
()),
);
}
@override
Widget
build
(
BuildContext
context
)
=>
GetBuilder
<
GetMaterialController
>(
init:
Get
.
rootController
,
...
...
@@ -244,15 +256,7 @@ class GetCupertinoApp extends StatelessWidget {
routeInformationProvider:
routeInformationProvider
,
key:
_
.
unikey
,
theme:
theme
,
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
child
!
:
builder
!(
context
,
child
),
);
},
builder:
defaultBuilder
,
title:
title
,
onGenerateTitle:
onGenerateTitle
,
color:
color
,
...
...
@@ -271,12 +275,14 @@ class GetCupertinoApp extends StatelessWidget {
:
CupertinoApp
(
key:
_
.
unikey
,
theme:
theme
,
navigatorKey:
(
navigatorKey
==
null
?
Get
.
key
:
Get
.
addKey
(
navigatorKey
!)),
navigatorKey:
(
navigatorKey
==
null
?
Get
.
key
:
Get
.
addKey
(
navigatorKey
!)),
home:
home
,
routes:
routes
??
const
<
String
,
WidgetBuilder
>{},
initialRoute:
initialRoute
,
onGenerateRoute:
(
getPages
!=
null
?
generator
:
onGenerateRoute
),
onGenerateRoute:
(
getPages
!=
null
?
generator
:
onGenerateRoute
),
onGenerateInitialRoutes:
(
getPages
==
null
||
home
!=
null
)
?
onGenerateInitialRoutes
:
initialRoutesGenerate
,
...
...
@@ -289,15 +295,7 @@ class GetCupertinoApp extends StatelessWidget {
GetObserver
(
routingCallback
,
Get
.
routing
)
]
..
addAll
(
navigatorObservers
!)),
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
child
!
:
builder
!(
context
,
child
),
);
},
builder:
defaultBuilder
,
title:
title
,
onGenerateTitle:
onGenerateTitle
,
color:
color
,
...
...
@@ -313,5 +311,6 @@ class GetCupertinoApp extends StatelessWidget {
debugShowCheckedModeBanner:
debugShowCheckedModeBanner
,
shortcuts:
shortcuts
,
// actions: actions,
));
),
);
}
...
...
lib/get_navigation/src/root/get_material_app.dart
View file @
4fa5f60
...
...
@@ -220,8 +220,8 @@ class GetMaterialApp extends StatelessWidget {
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
(
child
??
SizedBox
.
shrink
())
:
builder
!(
context
,
child
),
?
(
child
??
Material
())
:
builder
!(
context
,
child
??
Material
()),
);
}
...
...
pubspec.yaml
View file @
4fa5f60
name
:
get
description
:
Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
version
:
4.2.
4
version
:
4.2.
5
homepage
:
https://github.com/jonataslaw/getx
environment
:
...
...
Please
register
or
login
to post a comment