How to Dynamically Disable and Enable Button in Flutter

Sometimes, we may need to disable and enable buttons in our apps. In this flutter example, I am showing you how to enable and disable elevated button. The ElevatedButton is enabled by default. But you can easily disable it by passing null to the onPressed property. See the snippet below. In practical scenarios, you always…

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…