···1818 /// Color for the icon. Defaults to white for dark/overlay screens.
1919 final Color color;
20202121- /// Optional custom callback. If null, defaults to `context.router.maybePop()`.
2121+ /// Optional custom callback. If null, defaults to `context.router.maybePop()`
2222 final VoidCallback? onPressed;
23232424 @override
···4455/// The preferred height for the feeds bar content (excludes status bar).
66/// The actual rendered height includes top safe area padding.
77-/// This widget is designed for use with [Scaffold.extendBodyBehindAppBar] = true.
77+/// This is designed for use with [Scaffold.extendBodyBehindAppBar] = true.
88const kFeedsBarHeight = kToolbarHeight;
991010/// The width of the leading button area, matching [kToolbarHeight] like AppBar.
···4141 final VoidCallback? onLeadingPressed;
42424343 /// Returns the toolbar height for layout calculations.
4444- /// The actual widget height includes status bar safe area padding.
4545- /// This matches [AppBar]'s behavior and works with [Scaffold.extendBodyBehindAppBar] = true.
4444+ /// The actual widget height includes status bar safe area padding,
4545+ /// matching [AppBar] & works with [Scaffold.extendBodyBehindAppBar] = true.
4646 @override
4747 Size get preferredSize => const Size.fromHeight(kFeedsBarHeight);
4848
···4455/// Tracks the currently visible post index in a standalone profile feed.
66/// Keyed by profile URI string to support multiple profiles.
77+///
88+/// Returns -1 when not yet initialized. This prevents videos at index 0 from
99+/// incorrectly auto-playing before the actual initial index is set.
710@riverpod
811class ProfileFeedIndex extends _$ProfileFeedIndex {
912 @override
1013 int build(String profileUri) {
1111- return 0;
1414+ return -1; // Not initialized
1215 }
13161417 void setIndex(int index) {