How to round a number in Dart

Updated: February 6, 2023 By: Hadrianus

In order to round a float number to an integer in Dart, we can use the round() method. This method returns the closest integer to the input number. If cannot determine the closest integer (e.g. 0.5,…

Flutter/Dart: Generate Random Numbers between Min and Max

Updated: June 5, 2023 By: A Goodman

A couple of examples of generating a random integer within a given range in Dart (and Flutter as well). Example 1: Using Random().nextInt() method The code: Output: Due to the randomness, it’s very likely that you’ll…

Flutter: How to remove the DEBUG banner on emulators

Updated: February 3, 2023 By: A Goodman

This article shows you how to get rid of the ugly (just my personal thought) debug banner that locates in the top right corners of iOS/Android emulators when you running a Flutter app in the development…

How to reset Docker Desktop

Updated: September 11, 2022 By: A Goodman

To reset your Docker Desktop, just follow a few easy steps below. Warning: All your local containers and images will be destroyed. All your settings, including your sign-in information, will be cleared. 1. Open your Docker…

Updating the PATH variable for Flutter on Mac

Updated: February 5, 2023 By: A Goodman

After downloading Flutter, you need to update your path in order to run flutter commands via the terminal. In macOS 10.15 or beyond (Catalina, Big Sur, Monterey), you need to edit the .zshrc file instead of…

1 39 40 41