forked from Frezyx/flutter_json_view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpink.dart
44 lines (42 loc) · 1.2 KB
/
pink.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import 'package:flutter/material.dart';
import 'package:flutter_json_view/flutter_json_view.dart';
void main() {
runApp(JsonViewApp());
}
class JsonViewApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Json View Theme',
theme: ThemeData(
primarySwatch: Colors.pink,
),
home: Scaffold(
appBar: AppBar(title: Text('flutter_json_view 1.1.2')),
body: Padding(
padding: const EdgeInsets.all(10),
child: JsonView.string(
'{"people":{"name": "Stas", "lastName": "Ilin", "githubLogin": "Frezyx", "age": 19, "man": true, "height": 186}}',
theme: JsonViewTheme(
keyStyle: TextStyle(
color: Colors.deepPurple,
),
stringStyle: TextStyle(
color: Colors.pink,
),
intStyle: TextStyle(
color: Colors.purple,
),
doubleStyle: TextStyle(
color: Colors.purple,
),
boolStyle: TextStyle(
color: Colors.purple,
),
),
),
),
),
);
}
}