Flutter: How to Repair/Remove all Dependencies in .pub-cache

May 14, 2022 A Goodman

If you are developing an app using Flutter and have encountered a problem related to one or more packages being broken in the system cache (in the ./pub-cache folder), you can reinstall all your cached dependencies…

Flutter & Dart: How to Check if a String is Null/Empty

May 11, 2022 The Plumber

When working with Flutter and Dart, there might be cases where you have to check whether a given string is null or empty. Suppose that our app’s functionality only continues when the string is neither null…

How to create selectable text in Flutter

May 5, 2022 Pennywise

This article shows you how to create selectable and copiable text in Flutter. Overview In Flutter, the text presented by the Text widget is undetectable (even on the web). To make text selectable, you can use…

Flutter StatefulBuilder example

May 5, 2022 A Goodman

This article is about the StatefulBuilder widget in Flutter. We’ll cover the fundamentals of the widget then examine a complete example of using it in action. Overview The StatefulBuilder widget makes it possible to rebuild only…

Text Overflow in Flutter: Tutorial & Examples

April 25, 2022 Pennywise

In Flutter, the overflow property of the Text, RichText, and DefaultTextStyle widgets specifies how overflowed content that is not displayed should be signaled to the user. It can be clipped, display an ellipsis (three dots), fade,…

Dart: Using Async and Await in Loops

April 20, 2022 Pennywise

In Dart (and Flutter as well), you can perform synchronous operations sequentially in loops by using Future.forEach. The example program below will print the numbers from 1 to 10. Every time it finishes printing a number,…

Using Font Awesome Icons in Flutter

April 18, 2022 A Goodman

This article covers almost everything you need to know about using Font Awesome icons in Flutter. Overview Font Awesome is a popular icon kit for websites and mobile apps which contains thousands of free icons (you…

Flutter web: Removing hash symbol (#) from all URLs

April 15, 2022 Pennywise

This article shows you how to remove the hash symbol (#) from Flutter web application URLs. You’ll also learn a technique to avoid a common error you will likely run into if you’re building a cross-platform…

Flutter: Programmatically Check Soft Keyboard Visibility

April 14, 2022 The Plumber

This practical article shows you two different ways to programmatically detect whether the soft keyboard is showing up or not in a Flutter application. The first approach uses self-written code and the second one uses a…

Flutter: Floating Action Button examples (basic & advanced)

April 3, 2022 The Plumber

This article walks you through 4 different examples of using FloatingActionButton (FAB) in Flutter. These examples are arranged in order from basic to advanced, from simple to complex. Without any further ado, let’s get started. Large…

Flutter: AnimatedOpacity example

April 3, 2022 Pennywise

This article is about the AnimatedOpacity widget in Flutter. Preface The purpose of AnimatedOpacity, as the name implies, is to animate its child’s opacity over a given duration: You can control the rate of animation change…

How to Get Device ID in Flutter (2 approaches)

April 1, 2022 A Goodman

This article walks you through 2 examples that demonstrate how to get the device identifier in Flutter. Using platform_device_id If you need only the id of the device that your app is running on, the simplest…

1 2 3 31