Dart: Get Strings from ASCII Codes and Vice Versa

February 18, 2023 Snowball

ASCII stands for American Standard Code for Information Interchange, is a character encoding standard that uses a 7-bit binary code to represent 128 possible characters, including letters, digits, punctuation marks, and control codes. For example, the…

Flutter & Dart: How to Trim Leading and Trailing Whitespace

February 18, 2023 Augustus

When using your app, users may unintentionally include leading or trailing whitespace when inputting data, which can result in inconsistent data. Trimming the whitespace ensures that the data is consistent and easier to work with. In…

Flutter: Creating a Custom Number Stepper Input

February 18, 2023 A Goodman

In web and mobile applications, a number stepper input is a user interface control that allows users to increase or decrease a numerical value using plus (+) and minus (-) buttons. The current value is displayed…

How to Create a Countdown Timer in Flutter

February 18, 2023 A Goodman

This practical, example-centric article shows you how to create a countdown timer app in Flutter. We’ll write code from scratch without using any third-party libraries. Overview About Countdown Timers A countdown timer can be a standalone…

Dart: 5 Ways to Calculate the Sum of a List

February 17, 2023 A Goodman

This practical, example-centric article walks you through 5 different approaches to calculating the sum of a list of numbers in Dart (and Flutter as well). No need to delay, let’s start right away and write some…

Dart: How to Remove or Replace Substrings in a String

February 14, 2023 A Goodman

In Dart (and Flutter as well), you can replace one or multiple substrings in a parent string by using the following built-in methods: You can remove substrings from a string by replacing them with empty strings…

Dart: Calculating Variance and Standard Deviation

February 14, 2023 A Goodman

Variance is a statistical measure that quantifies the amount of variability or spread in a set of data. It is calculated as the average of the squared differences from the mean of the data. Standard deviation…

How to Create a Stopwatch in Flutter

February 14, 2023 A Goodman

A stopwatch in a mobile app is a tool that measures elapsed time for a specific event or task. It includes start, stop (can be replaced with pause), and reset buttons and displays the time in…

Dart: 2 Ways to Calculate the Power of a Number (Exponentiation)

February 14, 2023 A Goodman

This concise and code-focused article shows you 2 different ways to find the power of a given number in Dart. Using the pow() method The pow() method from the math library (a built-in library of Dart)…

How to Create a Sortable ListView in Flutter

February 13, 2023 A Goodman

Introduction When developing Flutter apps, in some cases, we may want to provide the option for the user to sort the items in the ListView based on specific criteria. This sortable ListView provides a user-friendly way…

Flutter: 2 Ways to Create an Onboarding Flow (Intro Slider)

February 12, 2023 A Goodman

The onboarding process in a mobile app is a series of introductory screens (or an intro slider) that aim to educate and familiarize new users with the app’s functionality and interface. This practical article will show…

Working with the Align widget in Flutter

February 12, 2023 A Goodman

This article is about the Algin widget in Flutter. We’ll have a glance at the fundamentals of the widget and then examine a couple of examples of implementing it in practice. Without any further bothersome (like…

1 2 3 36