How to create an ElevatedButton with Rounded Corners in Flutter

We already know how to add an ElevatedButton in flutter. A button with rounded corners is always beautiful to see. In this blog post, let’s check how to create an Elevated Button with rounded corners in Flutter. The style parameter and the styleFrom method should be used to create custom styles for the ElevatedButton. The…

How to Change the Color of ElevatedButton in Flutter

The ElevatedButton is the ready-to-go button for Flutter. I already have a blog post on adding ElevatedButton in flutter. Now, let’s check how to change the color of the elevated button in Flutter. By default, the ElevatedButton inherits the theme color. We can tweak the background color, as well as the foreground color of the…

How to Create a Blur Effect on Background in Flutter

Occasionally, we may want to have some blur effects on the background. In Flutter, adding a blur effect is an easy task. You just need to make use of the BackdropFilter widget. You can create a blur effect using BackdropFilter and ImageFilter as given below. Following is the complete Flutter blur effect example where the…

How to Convert Current Date and Time to UTC in Flutter

UTC is a widely used standard for representing the time and ensures that your applications are functioning correctly across different time zones. In this tutorial, we will be exploring the process of converting the current date and time to the Coordinated Universal Time (UTC) format in Flutter. We use DateTime class for this purpose. You…