What is Widget in flutter ?
Widget is a description of a part of UI. In flutter, Widget is a way to declare and construct UI. If you are familiar with the Android or iOS development then you might make the immediate connection with the views (on Android) or UIViews (on iOS). But dear just like view, Widget is not just a piece of UI. Widget is a lot more than just structural elements like buttons, text, image, list or slider. A widget might display Something, it might help define design, it might help with layout, it may handle user interaction, etc. For example, Padding is a widget, Margin is a widget, Center is a widget, Layout rows and columns are also widgets. So you can consider that a widget is a blueprint. Flutter uses these blueprints to create views. Here also remember that in flutter everything is a widget. Even your app itself is a widget. 😊 Widget tree If you already have fun with flutter code then you might notice that infinite Parent-Child tree. Yaa I agree, first time it just sc