How to change the splashRadius of a BottomNavigationBarItem in Flutter - 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)

Related

flutter make widget collapse when scroll

I want to make a container collapse (disappear) when scroll down, and expand (appear again) when scroll up. Just like the search bar in microsoft teams mobile.
I tried to do it using SliverAppBar and it worked but the ListView became lagging and had problems. Is there any way to do it without SliverAppBar?
I think you should only replace AppBar Widget with SliverAppBar
hope I could help.
You may check this library hidable

customize bottom navigation in flutter

I'm working on a flutter project and I want to add a bottom navigation bar but I want to add a variable that show how many BottomNavigationBarItem it will be in this bottom navigation bar, for example if I set a value to 5 I Will have 5 BottomNavigationBarItem in my bottom navigation, if I change it to 3 I will have just 3. Is there a way to do it. Any help is highly appreciated.
Just declare a variable to store the count of the items in the BottomNavigationBar and use it to generate the items.
If the variable is changing dynamically and you want to reflect that change to the BottomNavigationBar then set the widget containing the BottomNavigationBar as a StatefulWidget and follow the same concept in this answer to complete the rest of the task.

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

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.

How do I create Vertical tabBar in 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