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

August 13, 2020 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, I just upgrade all the dependencies listed in…

How to disable Landscape mode in Flutter (2021)

January 11, 2021 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

August 10, 2020 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 installed yet). 1. Open your Android Studio, click Configure and select…

How to make Circular Buttons in Flutter (2021)

January 5, 2021 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…

Merging 2 lists in Dart

July 2, 2020 The Shadow

The List class of Dart provides the addAll method that helps you easily join 2 lists together; Example: Output:

How to round a number in Dart

July 2, 2020 The Shadow

In order to round numbers in Dart, just use the round() method. Example: Output:

Flutter/Dart: Generate Random Numbers between Min and Max

July 23, 2021 The Shadow

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: The result you get may contain min, max, or…

Flutter: How to remove the DEBUG banner on emulators

July 1, 2020 A Goodman

This article shows you how to get rid of the ugly (just my personal thought) debug banner located in the top right corners of iOS/Android emulators when you are working with Flutter. The solution is quite…

Updating the PATH variable for Flutter in macOS 10.15+ (Catalina and newer)

April 12, 2020 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), you need to edit the .zshrc file instead of the .bashrc or…

1 24 25 26