analytics_hub_flutter 0.6.1
analytics_hub_flutter: ^0.6.1 copied to clipboard
Flutter widgets for analytics_hub. Puts an AnalyticsScope on the widget tree and sends impression events.
0.6.1 - 2026-10-09 #
Added #
AnalyticsScopeProvider.read(context): the nearest sink without registering a dependency, forinitState,BlocProvider.createand callbacks.
0.6.0 - 2026-10-08 #
Added #
AnalyticsScopeProvider: puts anAnalyticsScopeon the widget tree.of(context)returns the nearestAnalyticsSink(the hub under.root, aScopedAnalyticsunder a scope),maybeOf(context)the same ornullwhen there is no provider;scopeOf(context)the nearestAnalyticsScope. Built onInheritedTheme, soshowDialog,showModalBottomSheet, menus and other overlays see the scope of the context they were opened from.AnalyticsImpression: sends one event through the nearest sink when its subtree first reachesvisibleFraction(default 0.5), once perStatelifetime — a lazy list that disposes the item re-sends when it is rebuilt.