Asking about Flutter UI - flutter

I have one question regarding Flutter UI. You guys know what this is called in flutter at "Nutrition Fact" part as my picture shown below? The keyword or package that I can search regarding that part. Hope u guys can help me.
Image Reference

It is called Bottom Sheet.
There are so many dart packages but any one of two can be use for your example.
First : solid_bottom_sheet
Second : modal_bottom_sheet

It looks like a rounded container with a row widget. Row widget has 2 children: Text("Nutritional Fact") and IconButton. MainAxisAlignment of row is set to MainAxisAlignment.spaceBetween.IconButton's onpressed parameter might show a BottomModalSheet to display the fact.

Related

Create Vertical List in Flutter

I want to create this type of listview using flutter.
https://dribbble.com/shots/6872462-Food-ordering-app-Animate
You can find out more by clicking on this link. But I don't know how to create this type of list. I mean, you can see in the GIF that the list is indexed based.
A fixed indexed item container is colored.
How can I achieve it?
Flutter provides you with a widget very similar to the result you want to achieve called NavigationRail.
You will not have the animation by default, but you can maybe search in the source code of this widget how to create a custom widget that will implement animations.

Now which widgets are right now shown in List

Hello I have a ListView with different Widgets of different height. Now I want to know which of those Widgets are at the moment visible in the ListView. Does anyone has an idea how to do it. I can't use to scroll_to_widget package because it interferes other implementations.
Try using https://pub.dev/packages/visibility_detector maybe you can create a separate list and store true according to index, based on their visibility?

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

Is there any deafult widget like in image or if I need to do it how could that be implemented?

So I am not looking for filters but I am looking for scroll widget. I have tried generating listview items abd getting position of listview to give items ratio but I wasn't able to get any functionality while in certain index position. Any help would be helpfull. Naming of the widget or special widgets that can make me do this etc.
You can use ListView or ListView.builder to do that, but with circle-shaped widgets as the children.
You can check out this tutorial to do the horizontal list. And you can check out this StackOverflow question, to create a circle button. Or instead of a button, you want to use the CircleAvatar (to add an image in it), you can check out this official doc.

What's the best way to create a vertical button menu in Flutter?

Total noob here.
I'm making an app menu in Android Studio, using Flutter/dart as my code base. I need to make a series of horizontal buttons laid out in a vertical column.
The button design is essentially an outline button. White button but with a grey outline.
Would it be best to put these buttons in a ListView and have OutLineButtons as the buttons OR have them in a column and the children of that column be rows with the buttons inside?
Appreciate the advice.
An image i pulled from google to illustrate the layout of what i'm looking for
welcome to the Flutter world.
You can use the Column class to do that. [Here is the doc]
Inside that Column You can add more widget as many as you want.
Example:
Column(
children: <Widget>[
//Your first menu widget
//Your second menu widget
//Your third menu widget
],
)
You can read the docs or look for tutorials for more information. Happy creating