archives

In Flutter, when we want to rebuild the UI inside a Stateful widget after updating a variable, we use setState(). setState() re-runs the build method and the widget is rebuilt with the updated variable value. For a simple UI, setState() may be enough as a state management solution but when the widget tree is large […]

Continue Reading  

In many cases, we may need a UI element which can be dragged from one point to another point on the screen. So, for those cases, Flutter introduces Draggable widget. This widget allows the movement of widgets across the screen. When a widget is draggable, usually it needs to be dropped at a certain location. […]

Continue Reading  

Extension methods are added to the classes of existing libraries, which we cannot directly modify, to add additional functionalities. Dart 2.7, introduced extension methods. Extensions can not only consist of methods, but also getters, setters and operators. We implement extension methods with the syntax: extension <extension_name> on <type> { (<member definition>)* } Generally, when we […]

Continue Reading  

Colors are the primary element of an aesthetic UI. The use of right colors creates a visually appealing UI which has significant impact on grabbing the users’ attention. Many brands also have their own color palette which helps them form their own brand identity. In short, colors play a vital role in determining the quality […]

Continue Reading