Skip to content

Conversation

@AlexV525
Copy link
Member

@AlexV525 AlexV525 commented Aug 29, 2025

The main idea of this PR is now users can now call openContainer externally through a given key.

(Possibly) Fixes flutter/flutter#82133 since now we can combine custom gesture recognition with the method.

Pre-Review Checklist

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

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@Piinks
Copy link
Contributor

Piinks commented Sep 26, 2025

Hey @AlexV525! Just came across this, thanks for contributing. :) Drafts usually do not enter review queues, so please do mark this ready for review when it is. It looks like there are a couple of failures right now.

@AlexV525
Copy link
Member Author

Hey @AlexV525! Just came across this, thanks for contributing. :) Drafts usually do not enter review queues, so please do mark this ready for review when it is. It looks like there are a couple of failures right now.

@Piinks Thanks for the ping! I just don't have a good time to write some tests for it recently. :D I shall come back in the next few days.

@AlexV525 AlexV525 marked this pull request as ready for review September 27, 2025 04:33
class _OpenContainerState<T> extends State<OpenContainer<T?>> {
/// State for a [OpenContainer].
///
/// Can [openContainer] explicitly or via a tap when
Copy link
Member

Choose a reason for hiding this comment

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

/// The [openContainer] can be triggered either by:
/// 1. Explicitly calling [openContainer] from [OpenContainerState]
/// 2. By tapping the [OpenContainer] widget itself, if [OpenContainer.tappable] is true.

Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

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

This PR looks good to me, thank you for your contribution!

Clarified documentation for triggering the openContainer method.
@AlexV525 AlexV525 added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 9, 2025
@auto-submit auto-submit bot merged commit 0b41de3 into flutter:main Oct 9, 2025
80 checks passed
@AlexV525 AlexV525 deleted the animations/feat/public-state branch October 9, 2025 04:07
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 9, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 9, 2025
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: animations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make OpenContainer be triggered by a dragUp gesture

3 participants