What are the widgets in the flutter framework?
Like in Physics we studied that everything in this world is the matter made up of atoms , and molecules they together combined and form an organism . Similarly in the flutter every thing that we see is the widget , Like button , Textfield , Text etc.
Here we're discussing about the most important and used widgets in the flutter :
- Container : You can assume it as a rectangle for now , and inside it you can put any other widgets like text, Color , Images etc.
- Text : As from the name we can understand that this is the widget which display the user defined text .
- Button : This is button and we can perform various operations in our application such as form submission , Going to the next page , anything that you can think of a programmer perspective .
- ListTile : This is the rectangular widget here we can understand it as the facebook friend suggestion list where we get friend image at left then Friend name in the center and accept/send request button in the right .
- Column : This is the widget inside which it can contain multiple widgets in the vertical manner , such as the Instagram's feeds that we scroll.
- Row : This is the widget inside which it can contain multiple widgets in the horizontal manner , such as the spotify's songs /albums .
- SingleChildScrollView : This is the widget which can contain only on widget inside it and can be scrolled about the given axis.
So guys this is the widget there are more these are just a few drops of liquid from an ocean . We can used these widgets inside one another . Like taking the example of facebook friend suggestion list
here we can find that the parent is the SingleChildScrollView as we can scroll the screen and then it contains the column widget and inside column we have multiple widget of the List Tile. This is just an example , I don't know if it's true.
Comment down if got some information or not ?
Comments
Post a Comment