response pane widgets

This commit is contained in:
Ankit Mahato
2023-03-11 17:37:16 +05:30
parent eba7bbac44
commit b10ecd7708
6 changed files with 335 additions and 198 deletions

18
lib/widgets/jsonview.dart Normal file
View File

@ -0,0 +1,18 @@
import 'package:flutter_json_view/flutter_json_view.dart';
import 'package:apidash/consts.dart';
import 'package:flutter/material.dart';
final jsonViewTheme = JsonViewTheme(
defaultTextStyle: codeStyle,
viewType: JsonViewType.collapsible,
backgroundColor: colorBg,
stringStyle: const TextStyle(color: Colors.brown),
closeIcon: const Icon(
Icons.arrow_drop_up,
size: 18,
),
openIcon: const Icon(
Icons.arrow_drop_down,
size: 18,
),
);