How to Change Shadow Color of Elevated Button in Flutter

Nowadays, many Flutter developers prefer ElevatedButton as their button. In this Flutter tutorial, let’s check how to change shadow color of Elevated Button. The styling of the Elevated Button is done with the help of ButtonStyle class. The shadowColor property of the ButtonStyle class can be used to change the shadow color. As you see, …

How to Change Shadow Color of Elevated Button in Flutter Read More »

How to use Async / Await Keywords in Flutter

Async and Await are two important keywords in programming languages. These two keywords make asynchronous functions read better. In this tutorial, let’s see how to use async and await in Flutter. Following is an asynchronous function where async and await keywords are used. Following is the video where the official Flutter team explains the usage …

How to use Async / Await Keywords in Flutter Read More »

How to call a Variable inside String in Flutter

In some scenarios, you may want to get an existing variable inside your string. Hence, let’s check how to call variables inside a string in Flutter. Calling a variable inside string is extremely easy in Flutter. You just need to use the dollar syntax as given below. Here $value represents an already defined variable named …

How to call a Variable inside String in Flutter Read More »

How to Detect Device Model in Flutter

A mobile app might be running on various mobile devices with different configurations. Hence, it’s important for developers to get the device model of the users. Then only the developer can address device-specific bugs and issues. Let’s check how to get device model in Flutter. The device info is a Flutter package that gives information …

How to Detect Device Model in Flutter Read More »

How to Fetch Data from API and Show in Flutter ListView

Fetching data from an API and displaying that data in ListView is a common requirement of Flutter Apps. It’s because you can show a large set of dynamic data through the ListView widget easily. In this Flutter tutorial, let’s use a sample API https://jsonplaceholder.typicode.com/albums that give a set of data in JSON format. First of …

How to Fetch Data from API and Show in Flutter ListView Read More »

How to Do API Calling in Flutter

Most of the mobile applications we develop have to use internet for various purposes. Hence, let’s learn how to fetch data from APIs in Flutter. We are using a sample API https://jsonplaceholder.typicode.com/todos/1 that gives the following data in JSON. First of all install http package into your Flutter project. Open your pubspec.yaml file and add …

How to Do API Calling in Flutter Read More »