Skip to content

feat: add resizeBegin && resizeEnd Functions#10

Open
iwpz wants to merge 1 commit into
ibako:mainfrom
iwpz:main
Open

feat: add resizeBegin && resizeEnd Functions#10
iwpz wants to merge 1 commit into
ibako:mainfrom
iwpz:main

Conversation

@iwpz

@iwpz iwpz commented Sep 26, 2021

Copy link
Copy Markdown

maybe u have to format codes again.

@iwpz

iwpz commented Sep 26, 2021

Copy link
Copy Markdown
Author

with resizeBegin && resizeEnd, you can use resizable_widget in a scrollView.
First put it into a scrollView, and make a bool canPageScroll = true;

 physics: canPageScroll ? ScrollPhysics() : NeverScrollableScrollPhysics(),

Then you can

  onResizeBegin: (index, details) {
    setState(() {
      canPageScroll = false;
    });
  },
  onResizeEnd: (index, details) {
    setState(() {
      canPageScroll = true;
    });
  },

And about details, I think maybe someone may need some points to add some handler, just like me :)

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.

1 participant