Jonny Borges
Committed by GitHub

Merge pull request #1858 from maxzod/enable_logs

enable logs on debug instead of always
  1 +import 'package:flutter/foundation.dart';
1 import 'package:flutter/widgets.dart'; 2 import 'package:flutter/widgets.dart';
2 3
3 import 'log.dart'; 4 import 'log.dart';
@@ -9,6 +10,6 @@ abstract class GetInterface { @@ -9,6 +10,6 @@ abstract class GetInterface {
9 SmartManagement smartManagement = SmartManagement.full; 10 SmartManagement smartManagement = SmartManagement.full;
10 RouterDelegate? routerDelegate; 11 RouterDelegate? routerDelegate;
11 RouteInformationParser? routeInformationParser; 12 RouteInformationParser? routeInformationParser;
12 - bool isLogEnable = true; 13 + bool isLogEnable = kDebugMode;
13 LogWriterCallback log = defaultLogWriterCallback; 14 LogWriterCallback log = defaultLogWriterCallback;
14 } 15 }
@@ -52,7 +52,7 @@ class GetCupertinoApp extends StatelessWidget { @@ -52,7 +52,7 @@ class GetCupertinoApp extends StatelessWidget {
52 this.onReady, 52 this.onReady,
53 this.getPages, 53 this.getPages,
54 this.opaqueRoute, 54 this.opaqueRoute,
55 - this.enableLog, 55 + this.enableLog = kDebugMode,
56 this.logWriterCallback, 56 this.logWriterCallback,
57 this.popGesture, 57 this.popGesture,
58 this.transitionDuration, 58 this.transitionDuration,
@@ -154,7 +154,7 @@ class GetCupertinoApp extends StatelessWidget { @@ -154,7 +154,7 @@ class GetCupertinoApp extends StatelessWidget {
154 this.onInit, 154 this.onInit,
155 this.onReady, 155 this.onReady,
156 this.onDispose, 156 this.onDispose,
157 - this.enableLog, 157 + this.enableLog = kDebugMode,
158 this.logWriterCallback, 158 this.logWriterCallback,
159 this.popGesture, 159 this.popGesture,
160 this.smartManagement = SmartManagement.full, 160 this.smartManagement = SmartManagement.full,