mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-15 02:05:58 -07:00
feature: Details screen rework (#190)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
473e817e0f
commit
d2138da785
21 changed files with 462 additions and 394 deletions
|
|
@ -88,7 +88,7 @@ class CrashLogNotifier extends StateNotifier<List<ErrorViewModel>> {
|
|||
if (kDebugMode) {
|
||||
print('${rec.level.name}: ${rec.time}: ${rec.message}');
|
||||
}
|
||||
if (rec.level != Level.INFO) {
|
||||
if (rec.level > Level.INFO) {
|
||||
state = [ErrorViewModel(rec: rec), ...state];
|
||||
if (state.length >= maxLength) {
|
||||
state = state.sublist(0, maxLength);
|
||||
|
|
@ -97,7 +97,7 @@ class CrashLogNotifier extends StateNotifier<List<ErrorViewModel>> {
|
|||
}
|
||||
|
||||
void logFile(FlutterErrorDetails details) {
|
||||
logger.severe('Flutter error: ${details.exception}', details.exception, details.stack!);
|
||||
logger.severe('Flutter error: ${details.exception}', details.exception, details.stack);
|
||||
|
||||
if (details.stack != null && kDebugMode) {
|
||||
print('${details.stack}');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue