Flutter: Show/Hide Password in TextField/TextFormField
Updated: Aug 06, 2023
What is the Point? To hide an entered password in a TextField/TextFormField, just set its obscureText property to true: TextField( obscureText: true, /* ... */ ), Screenshot: To show the entered password for the......
Flutter: 2 Ways to Run a Piece of Code after a Delay
Updated: Aug 06, 2023
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 ado, let’s get our hands dirty by......
Flutter: How to Colorize Debug Console Logs
Updated: Aug 06, 2023
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......
Flutter: Caching Network Images for Big Performance gains
Updated: Aug 06, 2023
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 you have to......
Flutter: Disabling Android System Back Button
Updated: Aug 06, 2023
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 prevent the Android back......
Flutter: 2 Ways to Compare 2 Deep Nested Maps
Updated: Aug 05, 2023
In most programming languages, 2 maps are considered equal if they have the same length, and contain the same keys associated with the same values. This article shows you 2 different ways to correctly compare 2 deep nested maps in......
Flutter: Add a Search Field to an App Bar (2 Approaches)
Updated: Aug 05, 2023
This article walks you through a couple of examples of adding a search field to an app bar in Flutter. The first one uses the AppBar widget (most seen in entertainment apps) and the second one uses the SliverAppBar widget (commonly used......
Flutter: ListView Pagination (Load More) Example (updated)
Updated: Aug 05, 2023
In real-world Flutter applications, we often load dynamic data from servers or databases instead of using hardcode/dummy data as we often see in online examples. For instance, you have an e-commerce app and need to load products......
Flutter: ListTile examples (updated)
Updated: Aug 05, 2023
A few examples of the ListTile widgets in Flutter. Example 1 (Simple) This example displays a card with a list tile inside. The list tile contains a leading icon, a title, a subtitle, and a trailing icon. Screenshot: The......
Flutter & SQLite: CRUD Example (updated)
Updated: Aug 05, 2023
SQLite is a fast relational database that can be used to store data offline for mobile applications. CRUD means create, read, update, and delete, the four essential operations of persistent storage. In this article, we are going to......
Flutter: ValueListenableBuilder Example
Updated: Jun 05, 2023
This article walks you through a complete example of using ValueListenableBuilder, ValueNotifier, and ValueListenable to manage state in a multi-page (or multi-screen) Flutter application. A Quick Note The ValueListenableBuilder......
Flutter: WebView Example
Updated: Jun 05, 2023
There are several packages that can help you implement a web view in your Flutter application. In this article, we’ll use webview_flutter, the most popular plugin for this kind of stuff. Install The Plugin Run the......