Flutter

There are multiple ways of adding App Icon in Flutter, and here I’m going to cover some of those methods. Method 1: Using flutter_launcher_icons Package The flutter_launcher_icons package takes in a source png file and generates icons for both iOS and Android. To learn more about the flutter_launcher_icons package check out this link. Below are short instructions…

Read More App Icon in Flutter. Ways to Generate and Change app Icon.

In this Flutter tutorial, you will learn about different types of Switches in Flutter. Simple/Material Switch A Switch widget takes a boolean value parameter and onChanged function parameter. Switch( value: value1, //boolean value onChanged: (val) { setState(() { value1 = val; }); }, ), Material Switch Cupertino Switch A CupertinoSwitch is exactly the same as a normal (Material) Switch…

Read More All types of Switches in Flutter

In this Flutter tutorial, you will learn how to do basic form validation in Flutter. We will go through it step by step, and you’ll learn how to use Form and TextFormField widgets in Flutter. Creating a New Flutter App First, we’ll create a new Flutter app to work with. This tutorial assumes you have…

Read More Form Validation in Flutter with a Practical Example

In this tutorial, you will learn how to use change the background color of the top App Bar in Flutter. To change the background color of the AppBar widget in Flutter, we use its backgroundColor property. AppBar( backgroundColor: Colors.red ), // AppBar Below is a very simple Flutter app example, that uses the above code snippet…

Read More Changing AppBar Background Color in Flutter