Jonny Borges
Committed by GitHub

Merge pull request #1858 from maxzod/enable_logs

enable logs on debug instead of always
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'log.dart';
... ... @@ -9,6 +10,6 @@ abstract class GetInterface {
SmartManagement smartManagement = SmartManagement.full;
RouterDelegate? routerDelegate;
RouteInformationParser? routeInformationParser;
bool isLogEnable = true;
bool isLogEnable = kDebugMode;
LogWriterCallback log = defaultLogWriterCallback;
}
... ...
... ... @@ -52,7 +52,7 @@ class GetCupertinoApp extends StatelessWidget {
this.onReady,
this.getPages,
this.opaqueRoute,
this.enableLog,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.popGesture,
this.transitionDuration,
... ... @@ -154,7 +154,7 @@ class GetCupertinoApp extends StatelessWidget {
this.onInit,
this.onReady,
this.onDispose,
this.enableLog,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.popGesture,
this.smartManagement = SmartManagement.full,
... ...