Blog

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

This tutorial will teach you how to start your Spring Boot Web application on a different port number. Read the following tutorial to learn how to start your Spring Boot application on a random port number. By default, if no port number is configured, our Spring Boot Web application will start on port number 8080.…

Read More Start Spring Boot Application on a Different Port Number

This tutorial will teach you how to configure your Spring Boot application to log messages to a file. Specify File Path To make your application log messages to a file, you will need to configure a couple of new properties in the application.properties file. logging.file.path=/path/to/a/file logging.file.name=log.txt You might also need to enable a specific logging level…

Read More Log to File in Spring Boot

In this short tutorial, I am going to share with you how to switch your Spring Boot application, at runtime, to use a different logging level. Set Logging Level for a Package in Your App Suppose we have a Spring Boot Application with the following method in a Rest Controller class. @RestController @RequestMapping(“/users”) public class…

Read More Switch Logging Level in Spring Boot at Runtime

In this short tutorial, you will learn how to configure the /logout functionality in your Spring Boot Web application that uses OAuth2 Social Login. To learn how to implement the OAuth2 Social login feature, please check the following tutorial: Spring Security OAuth 2 Social Login. Configure HttpSecurity Applications that use Spring Security and OAuth2 Social login…

Read More Spring Security OAuth 2 Social Logout

In this tutorial, you will learn how to add a Social Login(OAuth 2) feature into your Spring MVC Web application. This will allow users to login to your application with their social network accounts like Facebook, Google, or other large services that support OAuth 2 like for example GitHub. Spring Security 5 offers very good…

Read More Spring Security OAuth 2 Social Login