toml_viewer 1.0.0 copy "toml_viewer: ^1.0.0" to clipboard
toml_viewer: ^1.0.0 copied to clipboard

A Flutter widget for displaying TOML files as interactive, expandable tree views with syntax highlighting, partial-parse error reporting, light/dark theme support, custom styling, extensible builders, [...]

-e ## 1.0.0

  • Released on 2026-04-03.

0.2.0 #

  • Added TomlViewerStyle — full control over text styles (per-element TextStyle), indentation, row spacing, separator string, and expand/collapse icons.
  • Added TomlViewerTheme InheritedWidget — provide config and style to an entire subtree without prop-drilling.
  • Added keyBuilder, valueBuilder, and rowBuilder on TomlViewerConfig for custom widget rendering per entry.
  • Added onValueTap and onValueLongPress interaction callbacks.
  • All TomlViewerConfig factories (.light(), .dark(), .of()) now accept style, builder, and callback parameters.
  • Example app updated with 7 demo tabs including Custom Style and Builders demos.

0.1.0 #

  • Breaking: Renamed constructors — use TomlView(content:), TomlView.asset(), or TomlView.fromMap().
  • Breaking: Removed re-export of package:toml/toml.dart. Import it directly if needed.
  • Breaking: Internal widgets moved to lib/src/ — only TomlView, TomlViewerConfig, TomlParseResult, TomlParseError, and TomlExpandController are public.
  • Added partial-parse error handling with inline error highlighting.
  • Added TomlExpandController for programmatic expand/collapse control.
  • Added loadingBuilder and errorBuilder for custom loading/error UI.
  • Added onParseErrors callback in TomlViewerConfig.
  • Added isolate-based parsing via compute() for large files (>50 KB).
  • Added arrayIndexColor and arrayExpandableColor to config.
  • Added error display config: errorHighlightColor, errorTextColor, showInlineErrors, errorMessageStyle.
  • Added TomlViewerConfig.light(), .dark(), and .of(context) for automatic theme-aware colours.
  • Fixed copyWith — now an instance method that copies from this, not defaults.
  • Fixed race conditions: generation-guarded async prevents stale results from painting.
  • Fixed double Expanded wrapping bug.
  • Fixed getTypeName ordering so TomlLocalDate/TomlLocalDateTime/TomlLocalTime are labelled correctly.
  • Added BigInt and TomlLocalTime support.
  • Added Semantics labels for screen reader accessibility.
  • Added RTL support via EdgeInsetsDirectional.
  • Added ListView.builder at root level for large data sets (>50 entries).
  • Lazy child rendering — collapsed subtrees are never built.
  • Converted viewer widgets from StatefulWidget to StatelessWidget with ListenableBuilder.
  • Replaced Container with Padding where only padding was needed.
  • Added platforms declaration to pubspec.yaml.

0.0.3 #

  • Configuration for default expand view and colour choices.

0.0.2 #

  • Initial TOML file viewer.
5
likes
150
points
146
downloads
screenshot

Documentation

API reference

Publisher

verified publishersudhi.in

Weekly Downloads

A Flutter widget for displaying TOML files as interactive, expandable tree views with syntax highlighting, partial-parse error reporting, light/dark theme support, custom styling, extensible builders, and full customisation.

Repository (GitHub)
View/report issues
Contributing

Topics

#toml #viewer #config #tree-view #syntax-highlighting

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, toml

More

Packages that depend on toml_viewer