Flutter

Flutter: DropdownButton Example

Updated: August 24, 2023 By: 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 a DropdownButton widget gets pressed, a menu with items will show up and let the…

Flutter: ExpansionPanelList and ExpansionPanelList.radio examples

Updated: August 19, 2023 By: 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

Updated: August 19, 2023 By: 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

Updated: August 19, 2023 By: A Goodman

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

Flutter: Create a Button with a Loading Indicator Inside

Updated: August 19, 2023 By: A Goodman

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

Flutter: FilteringTextInputFormatter Examples

Updated: August 6, 2023 By: A Goodman

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

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

Updated: August 6, 2023 By: 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

Updated: August 6, 2023 By: 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: Fortunately, implementing image caching in Flutter is not an advanced…

Flutter: How to Colorize Debug Console Logs

Updated: August 6, 2023 By: 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

Updated: August 19, 2022 By: 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 automatically makes your code cleaner, and has a consistent arrangement. However,…

Flutter: Disabling Android System Back Button

Updated: August 6, 2023 By: 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

Updated: August 19, 2022 By: A Goodman

The example below shows you how to read bytes from a network image in Flutter. The code: Output: The output is trimmed because it is too long. In case you want to see all of it,…

1 14 15 16 17 18 41