bloc_preview 1.0.3 copy "bloc_preview: ^1.0.3" to clipboard
bloc_preview: ^1.0.3 copied to clipboard

A zero-config BLoC state inspector with a built-in web dashboard. Visualize state changes, events, and errors in real time in your browser.

1.0.3 #

  • Fixed toString() parser truncating ISO-8601 values (for example 2026-05-05T12:13:14.123Z) to just the leading year.
  • Improved numeric token parsing so mixed tokens that start with digits (e.g. timestamps, semantic versions, UUID-like values) remain full strings.
  • Fixed map parsing edge case where unquoted keys like createdAt: ... could lead to incorrect value parsing.
  • Added regression tests for common API payload patterns (ISO dates with offsets, URLs, JWT-like tokens, semantic versions, numeric values).

1.0.2 #

  • Fixed toString() parser truncating values with non-ASCII characters (e.g. Polish letters like "Biały") in lists and object fields.
  • Fixed URLs inside lists being truncated to the scheme prefix ("https" instead of the full URL), causing only the first list item to be parsed.

1.0.1 #

  • Fixed package description length for pub.dev conventions.

1.0.0 #

  • Initial release.
  • BlocPreviewObserver - drop-in BlocObserver that launches a local web dashboard for inspecting BLoC states and events.
  • Built-in web UI served on localhost with real-time WebSocket updates.
  • Automatic state serialization via toJson(), JsonEncodable, or intelligent toString() parsing.
  • State diff - highlights exactly which fields changed between the previous and current state in every transition and change event.
  • Performance timeline - measures milliseconds between events per bloc and flags slow transitions (>100ms) in the UI.
  • Snapshot export - one-click "Copy JSON" button to export any state to the clipboard for bug reports or test fixtures.
  • Bloc lifecycle map - horizontal bar chart visualising when each bloc was created and closed, helping detect memory leaks and unnecessary rebuilds.
  • Event frequency monitor - tracks events per second for each bloc and warns when the rate exceeds 10 ev/s (event storm detection).
  • State size tracker - reports the serialised size of each state and warns when it exceeds 5 KB, helping spot unbounded state growth.
  • Configurable server port, host, and event history limit via PreviewConfig.
1
likes
160
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A zero-config BLoC state inspector with a built-in web dashboard. Visualize state changes, events, and errors in real time in your browser.

Repository (GitHub)
View/report issues

Topics

#bloc #state-management #debugging #devtools #inspector

License

MIT (license)

Dependencies

bloc

More

Packages that depend on bloc_preview