パッケージ、リポジトリ、アプリカテゴリを検索

flutter_json_view のカバー
パッケージ詳細v1.1.5

flutter_json_view

カスタマイズ可能なFlutterウィジェットでJSONモデルを表示する。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1.7万
いいね数
145
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_json_view

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

JSONデータをカスタマイズ可能で読みやすいウィジェット形式で表示するFlutterパッケージです。開発者がアプリUI内でJSONモデルを直接可視化できるようにし、スタイル設定、展開コントロール、ネスト構造のレンダリングが可能です。デバッグやデータ確認、構造化データをユーザーに提示する際に最適です。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしています。

用途

  • JSON応答のデバッグ
  • API データの表示
  • 構成ファイルの確認
  • データ構造を示す教育アプリ
  • 開発者ツールの構築

主な機能

  • カスタマイズ可能なテーマとカラー
  • 展開/折りたたみ可能な JSON ノード
  • すべてのFlutterプラットフォームをサポート
  • 既存のウィジェットとの簡単な統合
  • さまざまな画面サイズに対応するレスポンシブレイアウト

適している対象

  • デバッグツールを開発する開発者
  • JSONの可視化を必要とするアプリ
  • APIと連携するフロントエンドチーム
  • 教育またはチュートリアルアプリケーション

注意事項

  • 非常に大きなJSONファイルではパフォーマンスに影響する可能性があります
  • 展開/折りたたみ以外のインタラクティビティは限定的
  • カスタマイズなしでは本番データ表示に最適化されていない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Displaying json models in a Flutter widget

😎 Cool solution for viewing models in debug working
Show some ❤️ and star the repo to support the project!


Pub License: MIT Repository views Pub

Pub likes Pub popularity Pub points


Image Image Image

Getting Started

Add dependency
dependencies:
  flutter_json_view: ^1.1.5
Add import package
import 'package:flutter_json_view/flutter_json_view.dart';
Easy to use

Add one of the constructors in your code

String constructor
JsonView.string('{"key":"value"}'),
Asset file constructor
JsonView.asset('assets/data.json'),
Map constructor
JsonView.map({"key":"value"}),

Customization

🎨 The package was created in order to be able to customize your json view

drawing
JsonView.string(
    '{"key":"value"}',
    theme: JsonViewTheme(
      keyStyle: TextStyle(
        color: Colors.black54,
        fontSize: 16,
        fontWeight: FontWeight.w600,
      ),
      doubleStyle: TextStyle(
        color: Colors.green,
        fontSize: 16,
      ),
      intStyle: TextStyle(
        color: Colors.green,
        fontSize: 16,
      ),
      stringStyle: TextStyle(
        color: Colors.green,
        fontSize: 16,
      ),
      boolStyle: TextStyle(
        color: Colors.green,
        fontSize: 16,
      ),
      closeIcon: Icon(
        Icons.close,
        color: Colors.green,
        size: 20,
      ),
      openIcon: Icon(
        Icons.add,
        color: Colors.green,
        size: 20,
      ),
      separator: Padding(
        padding: EdgeInsets.symmetric(horizontal: 8.0),
        child: Icon(
          Icons.arrow_right_alt_outlined,
          size: 20,
          color: Colors.green,
        ),
      ),
    ),
  ),

More examples you can see here


Thanks to all contributors of this package


For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。