Skip to content

Add example for CupertinoExpansionTile transition modes #170335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

thakaredipali
Copy link

@thakaredipali thakaredipali commented Jun 10, 2025

This PR adds a combined example for the CupertinoExpansionTile widget, demonstrating its usage with both available transition modes: fade and scroll.

A demo app showing two CupertinoExpansionTile widgets:

  • One using the default fade transition mode

  • One using the scroll transition mode

A corresponding widget test verifying expand/collapse behavior for both tiles

Issue

Closes: #167317

Tests

  • Added widget tests to validate the expand and collapse behavior for both transition modes

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. f: cupertino flutter/packages/flutter/cupertino repository d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Jun 10, 2025
@victorsanni victorsanni self-requested a review June 10, 2025 14:59
@github-actions github-actions bot removed the f: scrolling Viewports, list views, slivers, etc. label Jun 11, 2025
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a solid example, thanks for adding it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add example app for CupertinoExpansionTile
3 participants