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?
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
How to add swiping functionality on ListView? I do not know the exact number of childs to use PageView, moreover I think having just a horizontal swipe on a scrollable widget is what will fit better.
if your want to add swipping functionality in PageView then you can use PageView.builder instead of just PageView.
I'm building an app with multiple pages. There are going to be some common elements. I want to wrap them in Hero() widgets so that they animate from one screen to another.
The problem is that the bottom navigation bar cuts between widgets. The way I currently have it is that I have a Home() widget that has a Scaffold(). The scaffold has a body which returns a widget (different pages) and a BottomNavigationBar(). Is there a way I can make a route be inside of the home's body widget or to add a route animation to the bottom navigation bar or other solutions that could fix this problem?
I don't want to have to make each page have a bottom navigation bar of it's own and route between them and I'd prefer to have the bottom navigation bar inside of the parent widget. How can I achieve this?
Thanks for your help!
I fixed it by having to put a bottom navigation bar in each page. I made it simpler by making a widget for it that takes in the page index so that I can just code it once and just put the widget on each page and write it's index.
Actually, I'm using a Silver AppBar in Flutter and inside it, I'm using a ListView Builder that has its own scroll. So basically there are two scrolls. But when I scroll List View Builder, Silver AppBar doesn't scroll. I want both of them to scroll from anywhere. What do I do?
Use sliver list istead of list view the problem will solve
here is the link of widget : https://api.flutter.dev/flutter/widgets/SliverList-class.html
You can put NeverScrollableScrollPhysics as a scroll physics for ListView.builder, so AppBar will scroll as with the content, maybe this is what you are looking for.