2 Ways to Create Typewriter Effects in Flutter
The typewriter effect is a kind of animation where the text appears to be typed out letter by letter. This is often used in conversations in games, movies, videos, or in apps where you want the…
Flutter: Making a Tic Tac Toe Game from Scratch
This practical article shows you how to create a simple tic-tac-toe game from scratch in Flutter. Information: Tic Tac Toe is a simple two-player game played on a 3×3 board (maybe bigger). Players take turns marking…
Flutter: Making a Length Converter from Scratch
This code-focused article shows you how to create a simple length converter app with Flutter. You will learn how to implement the conversion features, use dropdown selection, and display results. The goal of this tutorial is…
Styling Text in Flutter: Tutorial & Examples
This article is about styling text in Flutter. We’ll take a quick glance at the fundamentals and then examine a couple of practical examples. Without any further ado, let’s get started. Overview The TextStyle class is…
How to add/remove a duration to/from a date in Dart
In Dart (and Flutter), you can add or subtract a duration (days, hours, etc.) to or from a DateTime object by using the add() and subtract() methods, respectively. Here’re some real-world use cases of doing this:…
2 Ways to Get a Random Item from a List in Dart (and Flutter)
When developing apps with Flutter and Dart, there might be cases where you want to retrieve a random item from a given list (for example, an online shop wants to give a random gift to their…
How to Check if a Variable is Null in Flutter and Dart
This quick article shows you a couple of different ways to check whether a variable is Null or not in Flutter (and Dart as well). Using the equality operator (“==”) In Flutter (and Dart), you can…
4 Ways to Create Full-Width Buttons in Flutter
This practical and straightforward article walks you through 4 different ways to create full-width buttons in Flutter. Using ElevatedButton + Container/SizedBox Wrap your ElevatedButton (or TextButton, OutlinedButton) widget inside a Container or a SizedBox whose width…
TypeORM: How to Select Random Rows
In TypeORM, you can select a single or multiple random rows by adding orderBy(‘RANDOM()’) to your query builder. Let’s see a couple of examples below for more clarity. Let’s say we have a User entity like…
TypeORM: Find Records by Relation Columns
In TypeORM, you can select rows in a table based on the relation columns (in the related table) by using a query builder like this: The code snippet above retrieves all posts that were created by…
Cascade Delete in TypeORM
When working with a database, the cascade delete feature ensures that deleting a parent record will also remove the child records. For instance, we have a table that stores information about users and another table that…
2 Ways to Cancel a Request in Axios
This concise and straight-to-the-point article shows you 2 distinct ways to cancel a recently sent request in Axios. Without any further ado, let’s get started. Using AbortController If you’re developing a project with a new version…