-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
thakaredipali
wants to merge
23
commits into
flutter:master
Choose a base branch
from
thakaredipali:feature/cupertino_expansion_tile_example
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add example for CupertinoExpansionTile transition modes #170335
thakaredipali
wants to merge
23
commits into
flutter:master
from
thakaredipali:feature/cupertino_expansion_tile_example
+170
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… and scroll transitions
… and scroll transitions
5b39d17
to
9de541a
Compare
…thub.com/thakaredipali/flutter into feature/cupertino_expansion_tile_example
victorsanni
reviewed
Jun 10, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile_fade.0.dart
Outdated
Show resolved
Hide resolved
victorsanni
reviewed
Jun 10, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile_fade.0.dart
Outdated
Show resolved
Hide resolved
victorsanni
reviewed
Jun 11, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Show resolved
Hide resolved
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Outdated
Show resolved
Hide resolved
victorsanni
approved these changes
Jun 11, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Outdated
Show resolved
Hide resolved
examples/api/test/cupertino/expansion_tile/cupertino_expansion_tile.0_test.dart
Outdated
Show resolved
Hide resolved
examples/api/test/cupertino/expansion_tile/cupertino_expansion_tile.0_test.dart
Outdated
Show resolved
Hide resolved
examples/api/test/cupertino/expansion_tile/cupertino_expansion_tile.0_test.dart
Outdated
Show resolved
Hide resolved
justinmc
approved these changes
Jun 12, 2025
There was a problem hiding this 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!
examples/api/test/cupertino/expansion_tile/cupertino_expansion_tile.0_test.dart
Outdated
Show resolved
Hide resolved
victorsanni
requested changes
Jun 13, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Show resolved
Hide resolved
victorsanni
reviewed
Jun 13, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Outdated
Show resolved
Hide resolved
victorsanni
reviewed
Jun 13, 2025
examples/api/lib/cupertino/expansion_tile/cupertino_expansion_tile.0.dart
Outdated
Show resolved
Hide resolved
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Pre-launch Checklist
If you need help, consider asking for advice on the #hackers-new channel on Discord.