How do I create Vertical tabBar in Flutter? - flutter

How do I create Vertical tabBar in Flutter? Unlike TabBar where tabs are displayed in a horizontal row, I want to place them vertically in a Column. see this example

For your use case, it would be easier to use NavigationRail instead of trying to rotate everything.

The solution was simple. Here what I did. I wrapped the TabBar in a RotatedBox after decorating & styling it. And finally, wrapped everything inside PreferredSize and done.
Update on 30 Oct 2021: Use navigation Rail instead or something else from pub.dev.

Check out Drawer example in flutter gallery, they have the use case defined, and it provides many samples

Related

How can I create animated scrollable bottomsheet in Flutter?

I would like to create a scroll up bottomsheet something like this
Right now I am working with DraggableScrollableSheet widget. But I don't know how to add animation and that handle icon that changes when the sheet goes up or down.
You can use Solid bottom sheet package from here
also bottom_sheet_bar is similar like this.
In my flutter projects I use the following package for animated bottom sheets:
https://pub.dev/packages/modal_bottom_sheet

Paging by item Flutter

i would like to achieve pagination with flutter like this: every swipe gesture there i only one page swipped, and it is being centered in the screen. on the edges of the screen you can see parts of the next and previous items i.e the item is NOT THE SIZE OF THE SCREEN. this requirement is important. i can't set the item to be the size of the screen, also it should have padding between the items. for a better understanding i have a gif attached.
Thank you.
https://gfycat.com/soreheartfeltguernseycow
You can achieve the goal easily using PageView widget.
Ive found a class carousel_slider which is easily making that functionallity under the hood using PageView as suggested above.
For anyone who will need such behaviour as in the gif, see https://pub.dev/packages/carousel_slider

Centered carousel without snapping in flutter

I'm trying to make a carousel-like view here using SingleChildScrollView, I want the item to snap in the middle of the screen when scrolling, one item at a time.
I would personally recommend using the carousel_slider package, which provides a lot of flexibility: You can use custom widgets and views, and create both horizontal and vertical carousels.
Pub link: https://pub.dev/packages/carousel_slider
Alternatively, if you'd want to create it yourself, I think you'd have to try around working with custom ScrollControllers. Maybe take a look at the source code of the aforementioned package for some pointers.

Pageview.builder overlapping effect

I'm coding a quiz app. I want to achieve this. Everything is okay but the overlapping effect doesnt. I'm using pageview.builder to navigate between pages. How can i achieve this ?
I think you wish to have a carousel effect for your question cards.
A simple solution would be using ListView horizontally, also there are some packages that you would like to check, for example;
flutter_swiper
carousel_slider

How to change the splashRadius of a BottomNavigationBarItem in Flutter

I am trying to change de splashRadius of a BottomNavigationBarItem in Flutter as if it was an IconButton but there isn't a variable that woks as splashRadius. Any help?
You have some styling options in the bar itself, but I don't think it has an option for what I think is a splashRadius. If not, you'll probably have to create a bottom navigationbar yourself. (You can take a look at different packages to see how they do it)