Skip to content

Add a callback for dismiss, notifying the caller to perform logic, such as animation.#9

Open
jihchao wants to merge 1 commit into
Krootl:masterfrom
jihchao:master
Open

Add a callback for dismiss, notifying the caller to perform logic, such as animation.#9
jihchao wants to merge 1 commit into
Krootl:masterfrom
jihchao:master

Conversation

@jihchao

@jihchao jihchao commented Aug 25, 2023

Copy link
Copy Markdown

Add a callback for dismiss, notifying the caller to perform logic, such as animation.

@jihchao

jihchao commented Aug 25, 2023

Copy link
Copy Markdown
Author

@shliama shliama requested a review from klnfreedom October 25, 2023 07:13

@klnfreedom klnfreedom left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is a good idea to add a callback function when a sheet has been closed but change the name of this one.

required this.position,
required this.dismissible,
required this.decorationBuilder,
this.dismissCallback,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Change the name of the function onDismissCallback

required bool dismissible,
required int index,
bool initWithAnimation = true,
Function? dismissCB,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Change the name of the function onDismissCallback

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.

2 participants