How can I create animated scrollable bottomsheet in Flutter? - 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

Related

Modal bottom sheet on flutter with interactive background

I want to dim (gray) the background when the bottom sheet opens, like a modal bottom sheet, but still be able to interact with the rest of the UI while the bottom sheet is open - like a regular bottom sheet.
Any ideas?
Even though, I won't recommend creating such an effect as it is not very understandable from the user perspective.
You can achieve this by using the IgnorePointer, Stack and setState((){})
1- Add a field bool showOverlay = false;
2- Align some Container to with Alignment.bottom to represent ur bottom sheet
3- Put some overlay Container with some background color and opacity and wrap it with IgnorePointer(ignoring: true, ...) which will let it not interfere with your widgets below.
I think you got it from here.

Flutter - Bottom Sheet height transition

for my flutter project I need to create an animated bottom sheet in the sense that it will transition height when pressing a button... How can I do that?
I searched some flutter package because of like your reason.
I think that 'sliding_up_panel' package is what you find.
https://pub.dev/packages/sliding_up_panel

Flutter BottomSheet At Top Of Screen?

Im Looking to integrate a sheet that drops down from the top of the screen, containing a set of buttons and textfields. However, i cant find any widget suitable for doing this. Is there a way to reposition bottomsheet to achieve this?

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

Flutter overlay is moving

I'm asking how to disable Overlays to move when a Scaffold.of(context).showSnackBar is called like on my video below.
The same thing is happening when the keyboard appear. Sometime the blue floattingButton (+) don't come back to it's original position :-(
Thx in advance.
Problem animation
The FloatingActionButton going up when the Scaffold is displayed is something common to all default implementations.
Give a look to the "Bootom app bar" demo in the Gallery app. Press on the search button and you will see it coming up. Or just add a Scaffold to the app that is built with flutter create command.
This happens because of the way the FAB button is placed on the screen and the effect of displaying the Snackbar by the Scaffold.
The FAB button is displayed at the bottom of the content area of the Scaffold content. When the content area is shrinked to include the BottomAppBar, the FAB goes up with it. It has nothing to do with Overlay.
You have two options:
Either you create your own versiĆ³n of the FAB which is not
controlled by the Scaffold.
Or you hack the Scaffold so the size of the SnackBar is not taken
into account.
For this second option you can try the following:
Go to the file /lib/src/material/scaffold.dart in your flutter installation and look for the line with the code snackBarSize: snackBarSize, inside the _ScaffoldLayout class.
Replace it with snackBarSize: Size(0.0, 0.0),
You will see that the FAB stays in its place.