We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9630afa commit 28f6267Copy full SHA for 28f6267
lib/main.dart
@@ -1,6 +1,8 @@
1
import 'dart:async';
2
3
import 'package:flutter/material.dart';
4
+import 'package:flutter/foundation.dart' as foundation;
5
+
6
import 'package:flutter_crashlytics/flutter_crashlytics.dart';
7
import 'package:shared_preferences/shared_preferences.dart';
8
@@ -13,7 +15,7 @@ void main() async {
13
15
var pref = await SharedPreferences.getInstance();
14
16
Settings.instance.load(pref);
17
- assert(JournalApp.isInDebugMode = true);
18
+ JournalApp.isInDebugMode = foundation.kDebugMode;
19
var reportCrashes =
20
!JournalApp.isInDebugMode && Settings.instance.collectCrashReports;
21
0 commit comments