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 elevated button inherits a blue color. We can tweak the default style using the style parameter and …

How to Change the Color of ElevatedButton in Flutter Read More »

How to Add an Elevated Button in Flutter

Flutter has made the RaisedButton class obsolete and it recommends using ElevatedButton class. In this blog post, let’s check how to create a button using ElevatedButton class. An elevated button is a button which is based on the material design. It’s elevation increases when the button is pressed. It has a default style and you …

How to Add an Elevated Button in Flutter Read More »

How to Create a Blur Effect on Background in Flutter

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

How to Create a Blur Effect on Background in Flutter Read More »

How to Convert Current Date and Time to UTC in Flutter

In this short Flutter tutorial, let’s check how to convert current time to UTC (Coordinated Universal Time) in Flutter easily. We use DateTime class for this purpose. You can get the current time as given below. We can use the method toUtc to convert the current date and time to UTC. Following is the complete …

How to Convert Current Date and Time to UTC in Flutter Read More »