v1.0.2
flutter_json_widget
Flutter용 Json 뷰어 위젯입니다. 확장 가능한 목록에서 Json 데이터를 표시합니다. 스마트폰에서 데이터를 쉽게 읽을 수 있도록 합니다.
30좋아요 2330일 다운로드40Pub 점수
플랫폼 정보 없음
JSON 객체를 표시하는 위젯
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Json viewer widget for flutter.
The /example/ folder in the GitHub repo
contains a full Flutter app with demo examples.
Add this to your package's pubspec.yaml file:
dependencies:
flutter_json_widget: ^1.0.3
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:flutter_json_widget/flutter_json_widget.dart';
@override
Widget build(BuildContext context) {
var testString = '''{
"I": "How are you?",
"You": "Excellent!"}
''';
Map<String, dynamic> jsonObj = jsonDecode(testString);
return SafeArea(
child: SingleChildScrollView(
child: JsonViewerWidget(jsonObj)
),
);
}
Demo