toml_viewer 1.0.0
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-elementTextStyle), indentation, row spacing, separator string, and expand/collapse icons. - Added
TomlViewerThemeInheritedWidget— provide config and style to an entire subtree without prop-drilling. - Added
keyBuilder,valueBuilder, androwBuilderonTomlViewerConfigfor custom widget rendering per entry. - Added
onValueTapandonValueLongPressinteraction callbacks. - All
TomlViewerConfigfactories (.light(),.dark(),.of()) now acceptstyle, 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(), orTomlView.fromMap(). - Breaking: Removed re-export of
package:toml/toml.dart. Import it directly if needed. - Breaking: Internal widgets moved to
lib/src/— onlyTomlView,TomlViewerConfig,TomlParseResult,TomlParseError, andTomlExpandControllerare public. - Added partial-parse error handling with inline error highlighting.
- Added
TomlExpandControllerfor programmatic expand/collapse control. - Added
loadingBuilderanderrorBuilderfor custom loading/error UI. - Added
onParseErrorscallback inTomlViewerConfig. - Added isolate-based parsing via
compute()for large files (>50 KB). - Added
arrayIndexColorandarrayExpandableColorto 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 fromthis, not defaults. - Fixed race conditions: generation-guarded async prevents stale results from painting.
- Fixed double
Expandedwrapping bug. - Fixed
getTypeNameordering soTomlLocalDate/TomlLocalDateTime/TomlLocalTimeare labelled correctly. - Added
BigIntandTomlLocalTimesupport. - Added
Semanticslabels for screen reader accessibility. - Added RTL support via
EdgeInsetsDirectional. - Added
ListView.builderat root level for large data sets (>50 entries). - Lazy child rendering — collapsed subtrees are never built.
- Converted viewer widgets from
StatefulWidgettoStatelessWidgetwithListenableBuilder. - Replaced
ContainerwithPaddingwhere only padding was needed. - Added
platformsdeclaration to pubspec.yaml.
0.0.3 #
- Configuration for default expand view and colour choices.
0.0.2 #
- Initial TOML file viewer.
