diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml
index fa0bb6d..eb737ec 100644
--- a/.idea/libraries/Dart_Packages.xml
+++ b/.idea/libraries/Dart_Packages.xml
@@ -5,14 +5,14 @@
-
+
-
+
@@ -40,7 +40,7 @@
-
+
@@ -145,7 +145,7 @@
-
+
@@ -180,7 +180,7 @@
-
+
@@ -264,7 +264,7 @@
-
+
@@ -432,14 +432,14 @@
-
+
-
+
@@ -460,7 +460,7 @@
-
+
@@ -530,14 +530,14 @@
-
+
-
+
@@ -614,7 +614,7 @@
-
+
@@ -649,7 +649,7 @@
-
+
@@ -754,14 +754,14 @@
-
+
-
+
@@ -789,7 +789,7 @@
-
+
@@ -831,14 +831,14 @@
-
+
-
+
@@ -859,7 +859,7 @@
-
+
@@ -880,14 +880,14 @@
-
+
-
+
@@ -978,7 +978,7 @@
-
+
@@ -992,7 +992,7 @@
-
+
@@ -1020,7 +1020,7 @@
-
+
@@ -1090,7 +1090,7 @@
-
+
@@ -1098,13 +1098,13 @@
-
-
-
+
+
+
-
+
@@ -1119,12 +1119,12 @@
-
+
-
+
@@ -1136,7 +1136,7 @@
-
+
@@ -1156,11 +1156,11 @@
-
-
+
+
-
+
@@ -1170,8 +1170,8 @@
-
-
+
+
@@ -1186,7 +1186,7 @@
-
+
@@ -1201,25 +1201,25 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
@@ -1232,13 +1232,13 @@
-
+
-
+
-
+
@@ -1248,7 +1248,7 @@
-
+
diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml
index 436cfd5..d385275 100644
--- a/.idea/libraries/Flutter_Plugins.xml
+++ b/.idea/libraries/Flutter_Plugins.xml
@@ -15,12 +15,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/screen/settings/debug/jsonViewer.dart b/lib/screen/settings/debug/jsonViewer.dart
index b49b9aa..6b4ad19 100644
--- a/lib/screen/settings/debug/jsonViewer.dart
+++ b/lib/screen/settings/debug/jsonViewer.dart
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
import 'package:pretty_json/pretty_json.dart';
class JsonViewer extends StatelessWidget {
@@ -29,10 +30,20 @@ class JsonViewer extends StatelessWidget {
showDialog(context: context, builder: (context) {
return AlertDialog(
scrollable: true,
- title: const Text("Rohdaten"),
+ title: Row(children: const [Icon(Icons.bug_report_outlined), Text("Rohdaten")]),
content: Text(JsonViewer.format(dataMap)),
actions: [
- TextButton(onPressed: () => Navigator.of(context).pop(), child: const SingleChildScrollView(child: Text("Schließen")))
+ TextButton(onPressed: () {
+ Clipboard.setData(ClipboardData(text: JsonViewer.format(dataMap))).then((value) {
+ showDialog(context: context, builder: (context) => const AlertDialog(content: Text("Formatiertes JSON wurde erfolgreich in deiner Zwischenlage abgelegt.")));
+ });
+ }, child: const Text("Kopieren")),
+ TextButton(onPressed: () {
+ Clipboard.setData(ClipboardData(text: dataMap.toString())).then((value) {
+ showDialog(context: context, builder: (context) => const AlertDialog(content: Text("Unformatiertes JSON wurde erfolgreich in deiner Zwischenablage abgelegt.")));
+ });
+ }, child: const Text("Inline Kopieren")),
+ TextButton(onPressed: () => Navigator.of(context).pop(), child: const Text("Schließen"))
],
);
});