Flutter: Firing multiple Futures at the same time with FutureGroup

December 3, 2021 Pennywise

This article shows you how to fire multiple futures at the same time and run them in parallel by using the FutureGroup class in Flutter. We’ll explore the fundamentals of the class then walk through a…

How to Flatten a Nested List in Dart

December 3, 2021 Pennywise

In Dart, you can use the expand() method is to look for nested collections inside your collection and flatten them into a single list. Example: Output: Further reading: Flutter & Dart: Displaying Large Numbers with Digit…

Inheritance in Dart: A Quick Example

December 3, 2021 Pennywise

In Dart, you can use the extends keyword with any class where you want to extend the superclass’s functionality. A class can only extend one class since Dart does not support multiple inheritances. Below is a…

Flutter & Dart: 3 Ways to Generate Random Strings

November 24, 2021 Guest Contributor

This article shows you 3 different approaches to generate a random string in Dart (and Flutter as well). Without any further ado, let’s dive into the code. Joining Random Alphabet Letters and Numbers The example below…

Flutter & Dart: Displaying Large Numbers with Digit Grouping

November 7, 2021 A Goodman

Displaying large numbers with commas as thousands separators will increase the readability. This short article will show you how to do so in Dart (and Flutter as well) with the help of the NumberFormat class from…

Flutter: Avoid `print` calls in production code

October 29, 2021 The Plumber

When working with a new version of Flutter(2.5.0 or higher), the IDE will yell at you if you call the print() function to output something to the console (this behavior didn’t happen before): Screenshot: Even though…

Flutter: Create a Password Strength Checker from Scratch

October 22, 2021 A Goodman

In this article, we will create a Flutterpassword strength checker from scratch without using any third-party plugins. Without any further ado, let’s get started. Overview Each application will have a different way of assessing password strength….

Flutter: How to Draw a Heart with CustomPaint

October 14, 2021 The Plumber

This article walks you through an end-to-end example of drawing heart shapes using CustomPaint and CustomPainter in Flutter. Without any further ado (like talking about the history of Flutter or how gorgeous it is), let’s dive…

Implementing Tooltips in Flutter

October 11, 2021 The Plumber

A tooltip displays an informative message when users hover, tap, or focus on an element. In Flutter, you can use a built-in widget named Tooltip to create tooltips with ease. This article walks you through the…

Flutter: Drawing an N-Pointed Star with CustomClipper

October 11, 2021 The Plumber

This article shows you how to draw an n-pointed star (5-pointed star, 6-pointed star, 10-pointed-star, 20-pointed star, etc) by using the CustomClipper class in Flutter. There is no need to install any third-party packages. We will…

Adding a Border to Text in Flutter

October 4, 2021 Guest Contributor

The example below shows you how to add a stroke (or border) to text in Flutter. Screenshot: The code: Further reading: Flutter: Stream.periodic example Flutter Gradient Text Examples Flutter TextField: Styling labelText, hintText, and errorText Flutter:…

Flutter: Stream.periodic example

October 4, 2021 A Goodman

This article walks you through a complete example of using Stream.periodic in Flutter. A Quick Note The Stream.periodic constructor, as its name implies, is used to create a stream that broadcasts events repeatedly at period intervals….

1 2 3 27