Flutter

How to implement a loading dialog in Flutter

Updated: January 8, 2023 By: A Goodman

This article shows you how to create a loading dialog from scratch in Flutter. Overview There are many scenarios where you have to perform an asynchronous computation (future), such as making HTTP requests, processing files, fetching…

Environment Variables in Flutter: Development & Production

Updated: January 8, 2023 By: Pennywise

This article shows you a couple of different ways to use different configurations for development and production in Flutter. Using the dart.vm.product environment flag You can determine whether your app is currently running in production or…

Using NavigationRail and BottomNavigationBar in Flutter

Updated: April 26, 2023 By: A Goodman

This article shows you how to create an adaptive layout in Flutter by using both NavigationRail and BottomNavigationBar. We’ll have a glance at the concept and then walk through a complete example of applying that concept…

Flutter & Dart: Convert a String into a List and vice versa

Updated: March 31, 2023 By: Pennywise

In Flutter and Dart, you can turn a given string into a list (with string elements) by using the split() method. Example: Output: In the opposite direction, to convert a list of strings to a string,…

Dart: Extract a substring from a given string (advanced)

Updated: March 31, 2023 By: Pennywise

This article is about extracting a substring from a given string in Dart (and Flutter as well). We’ll cover the fundamentals, write a simple program, then walks through a few advanced use cases. Without any further…

Dart: Check whether a string starts/ends with a substring

Updated: March 31, 2023 By: A Goodman

To check if a string starts with or ends with a given substring in Dart (and Flutter as well), you can use the startsWith() method and the endsWith() method, respectively: These methods are case-sensitive (distinguish between…

How to run Flutter web with a custom port

Updated: March 31, 2023 By: A Goodman

By default, each time you start Flutter web on localhost, it will have a different port. However, there are cases where you need to set up a fixed, unchanged port (like when you want to implement…

Deleting unnecessary Images and Containers in Docker

Updated: March 4, 2022 By: A Goodman

This concise article shows you how to remove unused containers and images from your computer to gain free disk space. First, check images space usage, containers space usage, local volumes usage, and build cache usage by…

How to create a gradient background AppBar in Flutter

Updated: March 31, 2023 By: A Goodman

Gradients help you display smooth transitions between two or more colors. The example below will show you how to create an app bar with a gradient background in Flutter. We will get the job done without…

Check if a Flutter app is running on the web

Updated: March 31, 2023 By: A Goodman

You can check whether your Flutter app is running on a web browser by using the kIsWeb constant from the foundation library. Example Screenshot: The code: Using this technique, you can implement separate logic and features…

How to implement a Date Range Picker in Flutter

Updated: January 8, 2023 By: A Goodman

Many applications need a date range picker so that the user can filter records of financial transactions, orders, statistical data, or something like that, in a certain period. This article will show you how to implement…

Flutter: Convert UTC Time to Local Time and Vice Versa

Updated: January 8, 2023 By: A Goodman

This short and straightforward article is about converting UTC time to local time and vice versa in Flutter. Without any further ado, let’s get to the point. See Your Current Timezone You can get your current…

1 9 10 11 12 13 41