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
Stefan de Vogelaere
2020-08-19 17:01:25 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
31576cad69d6fbfbc7529ae6678dc5322d8e0961
31576cad
1 parent
032488ae
Logging abstraction also working in tests
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
lib/src/instance/get_instance.dart
lib/src/navigation/extension_navigation.dart
lib/src/navigation/root/root_widget.dart
lib/src/instance/get_instance.dart
View file @
31576ca
...
...
@@ -5,7 +5,7 @@ import 'package:get/src/state_manager/rx/rx_interface.dart';
class
GetConfig
{
static
SmartManagement
smartManagement
=
SmartManagement
.
full
;
static
bool
isLogEnable
=
true
;
static
LogWriterCallback
log
;
static
LogWriterCallback
log
=
defaultLogWriterCallback
;
static
String
currentRoute
;
}
...
...
lib/src/navigation/extension_navigation.dart
View file @
31576ca
...
...
@@ -773,7 +773,9 @@ extension GetNavigation on GetInterface {
if
(
enableLog
!=
null
)
{
GetConfig
.
isLogEnable
=
enableLog
;
}
if
(
logWriterCallback
!=
null
)
{
GetConfig
.
log
=
logWriterCallback
;
}
if
(
defaultPopGesture
!=
null
)
{
this
.
defaultPopGesture
=
defaultPopGesture
;
}
...
...
lib/src/navigation/root/root_widget.dart
View file @
31576ca
...
...
@@ -204,7 +204,7 @@ class GetMaterialApp extends StatelessWidget {
Get
.
config
(
enableLog:
enableLog
??
GetConfig
.
isLogEnable
,
logWriterCallback:
logWriterCallback
??
defaultLogWriterCallback
,
logWriterCallback:
logWriterCallback
,
defaultTransition:
defaultTransition
??
Get
.
defaultTransition
,
defaultOpaqueRoute:
opaqueRoute
??
Get
.
isOpaqueRouteDefault
,
defaultPopGesture:
popGesture
??
Get
.
isPopGestureEnable
,
...
...
Please
register
or
login
to post a comment