Flutter

Show a number to two decimal places in Dart (Flutter)

Updated: February 5, 2023 By: A Goodman

To round a double number to two decimal places in Dart and Flutter, you can use the toStringAsFixed() method. Note: You can set an arbitrary number of decimal places, like this: toStringAsFixed(N). However, numbers are usually…

Flutter ListView.builder() example

Updated: September 1, 2023 By: A Goodman

In Flutter, ListView.builder() is used to render long or infinite lists, especially lists of data fetched from APIs like products, news, messages, search results… Only visible items of the lists are called to reduce resource (CPU,…

Live Email Validation in Flutter (Validate while Typing)

Updated: October 11, 2022 By: A Goodman

In this article, we’ll build a small Flutter app to demonstrate how to validate email while the user is typing. This will help him or her quickly identifies if there is a typo or mistake going…

Docker build with custom Dockerfile name

Updated: February 23, 2022 By: Napoleon

Sometimes you may need two different Dockerfile for just a container, one for the development purpose and the other for the production environment. To build an image with the Dockerfile that isn’t named Dockerfile, just add…

How to enable Kubernetes in Docker Desktop

Updated: March 15, 2022 By: Augustus

This article shows you how to enable Kubernetes in your Docker Desktop for local development and testing. 1. Click on the gear icon located in the top right corner: 2. Select Kubernetes from the left-hand pane:…

Docker Desktop system requirements (Windows, macOS)

Updated: September 11, 2022 By: Guest Contributor

Before installing Docker Desktop for Windows or macOS, just check the system requirements listed below to ensure your computer is competent to run it. Windows Minimum system requirements OS: Windows 10 64-bit: Home or Pro (build…

Flutter system requirements on Windows and Mac (2024)

Updated: March 6, 2024 By: Guest Contributor

Flutter is an open-source UI SDK (software development kit) created by Google. First launched in 2017 and rapidly growing, Flutter has more than 160k stars on Github so far and is used by many large corporations…

Flutter error: Could not resolve the package ‘characters’ in…

Updated: February 6, 2023 By: A Goodman

Problem When running a Flutter app, you may see this error message: This often occurs after upgrading Flutter to a newer version. Solution To fix the mentioned error, just upgrade all the dependencies listed in the…

How to disable Landscape mode in Flutter

Updated: March 6, 2024 By: A Goodman

This article shows you how to disable the landscape mode in Flutter. The Steps 1. Import the services library to your main.dart file: Note that the services library comes along with Flutter and you DO NOT…

Install Flutter and Dart plugins in Android Studio

Updated: February 6, 2023 By: A Goodman

This article shows you how to install Flutter and Dart plugins in Android Studio (you’ll see warnings when running flutter docker if these plugins haven’t been installed yet). 1. Open your Android Studio, and you will…

How to make Circular Buttons in Flutter

Updated: March 6, 2024 By: A Goodman

Buttons are an indispensable part of mobile applications. In Flutter, buttons are rectangular in shape by default. However, in some cases, you may want your buttons to be circular to accentuate and blend in with the…

How to Merge 2 Lists in Dart

Updated: February 6, 2023 By: Hadrianus

This article shows you a couple of different ways to join 2 lists in Dart. You will learn each method through an example. Using Addition (+) Operator Example: Output: In my opinion, this approach is the…

1 38 39 40 41