mirror of
https://github.com/foss42/apidash.git
synced 2025-09-29 01:55:19 +08:00
response pane widgets
This commit is contained in:
18
lib/widgets/jsonview.dart
Normal file
18
lib/widgets/jsonview.dart
Normal 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,
|
||||
),
|
||||
);
|
Reference in New Issue
Block a user