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  

A string is used to hold a sequence of characters – letters, numbers, and special characters. In Dart language, strings are simply a sequence of UTF-16 (16-bit Unicode Transformation Format) code units. The Unicode format maps a unique numeric character to represent every digit, letter, or symbol.  A rune can be defined as an integer used to represent […]

Continue Reading  

In this guide, we will learn how to implement the network Connectivity Status in Flutter by using the external package name connectivity_plus. This plugin allows Flutter apps to discover network connectivity. For example, when you are connected or disconnected from wifi. But this package will not tell us if we have or not internet connection. In […]

Continue Reading  

In this article, we are going to learn about Streams in dart. For these, we should know what Streams in Dart is. A Stream is a sequence of asynchronous events. In other words, streams are a source of asynchronous events delivered sequentially. There are data events, which are sometimes referred to as elements of the stream due to […]

Continue Reading  

In this article, we are going to explore the freezed and working mechanism in the flutter application. With the help of freezed, we can reduce the lines of code. Freezed is a code-generation package that helps you to create data classes in Dart. It stops us from writing a ton of error-prone lines. Sometimes we just […]

Continue Reading  

In this guide, we will learn how to implement the WebView in Flutter by using the external package name webview_flutter. WebView in flutter is a plugin that provides a WebView widget on Android and iOS. This plugin is used to display web pages on both Android and iOS devices. We will learn how to use […]

Continue Reading  

In this guide, we will learn how to implement TabBar in Flutter. For these, we should know what a TabBar in flutter is. TabBar is used to create the tabs. The tabs are mainly used for mobile navigation. The styling of tabs is different for different operating systems. For example, it is placed at the top […]

Continue Reading  

In this article, we are going to convert the class object to the map in dart by taking a different example which is given below. Converting a Dart Object to a Map Here we have defined the class Person which takes two parameters name and age and we pass them to the constructor. and we […]

Continue Reading  

The core libraries in Dart are responsible for the existence of the List class, its creation, and manipulation. Sorting of the list depends on the type of list we are sorting ie if we are sorting an integer list then we can use a simple sort function whereas if it is a string list then we […]

Continue Reading  

JSON is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute-value pairs and arrays. Because of its human readability and with it being lightweight, it is commonly used as an easy data storage format. That means it can be used also in […]

Continue Reading