I Know we can make flutter page refresh with scrolling using refreshIndicator And also we can use the Btn to refresh the page But is there any way so that we can achieve both of these in the same widget.
I tried Using refreshIndicator but its working only either for a scroll or for the button.
Related
I want to make it responsive like if I move the slider then correspondent list which is below should be highlighted and should move according to the slider.
I have tried PageView controller to pass in ListView controller but it never worked.
I have an AppBar and other things in my layout. When user scrolls down, I want AppBar(actually, the Toolbar to show based on category).
How to achieve this appbar appear when scrolling the listview ?
Here the example i want to make like this.
Before scrolling
After Scrolling Appbar Appear and fixed at top
I'm trying to make an animation where the pages pop out of the bottom of the page after a button is pressed and the page below adapts to the size of the page above it.
Something like this:
I have a dismissible modal in flutter with a header, body and footer all wrapped in a Dissmissible widget, the header and body are draggable to dismiss by design but I don't want the footer to also be draggable to dismiss. Is there a way to make a certain widget not respond drag events?
I am making an app that has a BottomNavigationBar with 3 items, the first one is the Home page and it contains a ListView of items.
What i want to do is make the ListView scroll back to top when the Home button in the BottomNavigationBar is pressed.
Is there a way to do so?
initiate ScrollController for ListView
use onTap from BottomNavigationBar and get the current index
in onTap func, determine index == 0 and scrollController.jumpTo(0.0);