Flutter: DropdownButton Example

September 22, 2021 A Goodman

This article walks you through an end-to-end complete example of implementing the DropdownButton widget in Flutter. Overview A Quick Note When the DropdownButton widget gets pressed, a menu with items will show up and let the…

Flutter: ExpansionPanelList and ExpansionPanelList.radio examples

September 21, 2021 A Goodman

Below are two examples of implementing ExpansionPanelList and ExpansionPanelList.radio in Flutter. Basic ExpansionPanelList This example creates a panel list in which multiple panels can be expanded at the same time. If you want only a single…

2 Ways to Create Flipping Card Animation in Flutter

September 15, 2021 A Goodman

This article walks you through two complete examples of making flipping card animation in Flutter. The first example implements things from scratch and the second one uses a third-party package. Without any further ado, let’s get…

Flutter: How to Make Spinning Animation without Plugins

September 11, 2021 A Goodman

This article shows you how to create spinning animation by using the built-in RotationTransition widget in Flutter. A Quick Note The RotationTransition widget is used to create a rotation transition. It can take a child widget…

Flutter: Create a Button with a Loading Indicator Inside

September 2, 2021 A Goodman

This article shows you how to create a button with a loading indicator inside. You can write code from scratch or use a third-party plugin to get the job done. Using self-written code Example Preview The…

Flutter: FilteringTextInputFormatter Examples

August 31, 2021 A Goodman

This article walks you through a few practical examples of using FilteringTextInputFormatter to blacklist or whitelist certain characters when the user enters text into the TextField (or TextFormField). Without any further ado, let’s dive into the…

Flutter: 2 Ways to Run a Piece of Code after a Delay

August 30, 2021 A Goodman

This article demonstrates 2 different ways to execute a piece of code after a delay in Flutter. The first approach is to use Future.delayed and the second one is to use a timer. Without any further…

Flutter: Caching Network Images for Big Performance gains

August 27, 2021 A Goodman

The goodness of caching network images in a Flutter application does more than just boot up the performance of the application itself. Other significant benefits are: Reduce the burden on your server and reduce the cost…

Flutter: How to Colorize Debug Console Logs

August 26, 2021 A Goodman

Introduction Logging messages in different colors makes fixing bugs and developing apps with Flutter more fun and enjoyable. This article will show you how to do that without using any third-party plugins. Overview To output colored…

Prevent VS Code from Auto Formatting Flutter/Dart Code

August 24, 2021 A Goodman

By default, VS Code (Visual Studio Code) will automatically format your code when you save a Dart file. In general, this feature is useful and makes your code cleaner, and has a consistent arrangement. However, there…

Flutter: Disabling Android System Back Button

August 24, 2021 A Goodman

There might be cases where you want to programmatically disable the Android system back button on some specific screens in a Flutter application. This article shows you how to do it. What Is The Point? To…

Flutter: Reading Bytes from a Network Image

August 25, 2021 A Goodman

The example below shows you how to read bytes from a network image in Flutter. The code: Output: Further reading: Flutter: How to Read and Write Text Files How to encode/decode JSON in Flutter Base64 encoding…

1 2 3 26