Mobile

How to create a zebra striped ListView in Flutter

Updated: April 1, 2023 By: A Goodman

This concise, practical article shows you how to implement a zebra striped ListView in Flutter. Overview Imagine you have a list of things on your phone or computer screen. Now, imagine that each thing on the…

Dart: Get Strings from ASCII Codes and Vice Versa

Updated: April 27, 2023 By: 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

Updated: February 18, 2023 By: 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

Updated: February 18, 2023 By: 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

Updated: February 18, 2023 By: 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

Updated: February 17, 2023 By: 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

Updated: February 14, 2023 By: 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

Updated: February 14, 2023 By: 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

Updated: February 14, 2023 By: 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)

Updated: February 14, 2023 By: 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

Updated: February 13, 2023 By: 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)

Updated: February 12, 2023 By: 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…

1 2 3 4 5 46