Flutter

Working with the Align widget in Flutter

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

2 Ways to Create Typewriter Effects in Flutter

Updated: February 10, 2023 By: A Goodman

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

Updated: February 10, 2023 By: A Goodman

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

Updated: February 10, 2023 By: A Goodman

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

Updated: February 10, 2023 By: Augustus

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

Updated: February 8, 2023 By: A Goodman

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)

Updated: February 5, 2023 By: Snowball

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

Updated: February 5, 2023 By: A Goodman

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

Updated: September 15, 2023 By: A Goodman

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

Updated: September 27, 2022 By: Snowball

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

Updated: September 27, 2022 By: Snowball

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…

TypeORM: How to Connect to Multiple Database

Updated: September 21, 2022 By: Snowball

In TypeORM, you can simply connect to multiple databases simultaneously just by creating multiple data sources. The Steps 1. Setup your data sources: 2. The next step is to initialize the connections (usually placed in the…

1 2 3 4 5 6 41