Правки + иконка
This commit is contained in:
@@ -5,6 +5,7 @@ import 'dart:io';
|
||||
|
||||
// Flutter imports:
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
// Package imports:
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
@@ -32,7 +33,7 @@ class LogsService {
|
||||
void logError(String message, Object? exception, StackTrace? stackTrace) {
|
||||
talker.error(message, exception, stackTrace);
|
||||
|
||||
showErrorToast('$message ${exception.toString()}');
|
||||
if (kDebugMode) showErrorToast('$message ${exception.toString()}');
|
||||
}
|
||||
|
||||
void logCritical(String message, Object? exception, StackTrace? stackTrace) {
|
||||
|
||||
Reference in New Issue
Block a user