Skip to content

Docs: clarify Cue usage in sliver-based scroll layouts - #4

Merged
Milad-Akarie merged 2 commits into
mainfrom
copilot/close-question-sliver-usage
May 17, 2026
Merged

Milad-Akarie merged 2 commits into
mainfrom
copilot/close-question-sliver-usage

Conversation

Copilot AI commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

The issue asked how Cue should be used with sliver widgets in CustomScrollView. This PR adds explicit guidance so users know where Cue should be applied in sliver trees.

  • README: sliver usage guidance

    • Added a concise note in the trigger/usage section:
      • Animate the non-sliver widget rendered by each sliver (e.g. SliverToBoxAdapter child, SliverList item).
      • For SliverAppBar header animation, use CueFlexibleSpaceBar.
  • Scope

    • Documentation-only change (README.md), no API or runtime behavior changes.
CustomScrollView(
  slivers: [
    SliverToBoxAdapter(
      child: Cue.onScrollVisible(
        child: Actor(
          acts: [.fadeIn(), .slideY(from: 0.1)],
          child: const Text('Animated box child'),
        ),
      ),
    ),
    SliverAppBar(
      expandedHeight: 200,
      flexibleSpace: CueFlexibleSpaceBar(
        title: const Text('Title'),
        background: Actor(acts: [.fadeIn()], child: Placeholder()),
      ),
    ),
  ],
)

Copilot AI linked an issue May 17, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/Milad-Akarie/cue/sessions/a9464c13-5cfb-45d8-909b-fa13cccd3616

Co-authored-by: Milad-Akarie <55059449+Milad-Akarie@users.noreply.github.com>
Copilot AI changed the title [WIP] Close issue about sliver widget usage due to lack of information Docs: clarify Cue usage in sliver-based scroll layouts May 17, 2026
Copilot AI requested a review from Milad-Akarie May 17, 2026 08:49
@Milad-Akarie Milad-Akarie reopened this May 17, 2026
@Milad-Akarie
Milad-Akarie marked this pull request as ready for review May 17, 2026 08:59
@Milad-Akarie
Milad-Akarie merged commit 32a0617 into main May 17, 2026
2 checks passed
@Milad-Akarie
Milad-Akarie deleted the copilot/close-question-sliver-usage branch May 17, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question] Sliver usage

2 participants