reworked developer tools with diagnostics, storage viewers and release-capable debug overlays
This commit is contained in:
@@ -2,9 +2,9 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
import '../../routing/app_routes.dart';
|
||||
import '../../state/app/modules/settings/bloc/settings_cubit.dart';
|
||||
import '../centered_leading.dart';
|
||||
import 'json_viewer.dart';
|
||||
|
||||
class DebugTile {
|
||||
BuildContext context;
|
||||
@@ -16,9 +16,9 @@ class DebugTile {
|
||||
(onlyInDebug ? kDebugMode : true);
|
||||
|
||||
Widget jsonData(Map<String, dynamic> data) => callback(
|
||||
title: 'JSON daten anzeigen',
|
||||
onTab: () => JsonViewer.asDialog(context, data),
|
||||
);
|
||||
title: 'JSON daten anzeigen',
|
||||
onTab: () => AppRoutes.openJsonViewer(context, data),
|
||||
);
|
||||
|
||||
Widget callback({
|
||||
String title = 'Debugaktion',
|
||||
|
||||
Reference in New Issue
Block a user