flutter_pretty_json 0.1.0 copy "flutter_pretty_json: ^0.1.0" to clipboard
flutter_pretty_json: ^0.1.0 copied to clipboard

A Flutter widget for rendering JSON as an expandable tree with syntax highlighting.

A Flutter widget for rendering JSON as an expandable tree with syntax highlighting.

Features #

  • Expand and collapse nested JSON objects and arrays.
  • Syntax highlighting for keys, strings, numbers, booleans, and null values.
  • Long-press context menu actions:
    • Copy value
    • Copy name
    • Copy property path
  • Light and dark themes through PrettyJsonTheme ThemeExtension.

Example #

PrettyJson(
  encodedJson: '{"stringValue": "Hello, JSON tree!",emptyString": "","integerValue": 42, ... }',
  expanded: true,
  expandDepth: 1,
)

Pretty JSON Contextual Menu Options

Example app #

A complete runnable sample is available in example/lib/main.dart.

Contributing and support #

  • Open issues or feature requests in the repository issue tracker.
1
likes
150
points
98
downloads

Documentation

API reference

Publisher

verified publishershashikantdurge.dev

Weekly Downloads

A Flutter widget for rendering JSON as an expandable tree with syntax highlighting.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, two_dimensional_scrollables

More

Packages that depend on flutter_pretty_json