Mobile

Flutter: Firebase Remote Config example (updated)

Updated: March 6, 2024 By: A Goodman

The process of updating a production app often takes a lot of time and effort, from editing the code to building the app bundles, updating the metadata on the App Store and Google Play, and especially…

Dart: Convert Map to Query String and vice versa

Updated: April 23, 2023 By: A Goodman

This article shows you how to turn a given map into a query string and parse a given query string into a map in Dart (and Flutter as well) without using any third-party packages. Convert a…

Flutter: 2 Ways to Make a Dark/Light Mode Toggle

Updated: April 26, 2023 By: A Goodman

This article walks you through a couple of different ways to switch between dark mode and light mode in a Flutter application. Using Self-Written Code This approach uses ValueListenableBuilder and ValueNotifier, the two built-in classes of…

Best Plugins to Easily Create Animations in Flutter

Updated: September 15, 2023 By: Guest Contributor

Animation effects in mobile apps are very common. However, implementing them sometimes consumes a lot of time and effort for developers. This article will introduce you to a list of great open-source animation packages for Flutter…

Flutter: Dismiss Keyboard when Tap Outside Text Field

Updated: October 5, 2022 By: A Goodman

This article shows you a simple way to dismiss the soft keyboard when the user taps somewhere outside a text field in your Flutter app. What is the point? A realistic scenario If you use a…

Dart: Find List Elements that Satisfy Conditions

Updated: April 23, 2023 By: Guest Contributor

When developing apps with Flutter and Dart, you’ll be working a lot with lists. One of the most common tasks when working with lists is finding elements that satisfy single or multiple conditions. This article walks…

Conditional (Ternary) Operator in Dart and Flutter

Updated: April 19, 2023 By: Guest Contributor

This article is a deep dive into conditional (ternary) operators in Dart and Flutter. The Basic The conditional (ternary) operator is just a Dart operator that takes three operands: a condition followed by a question mark…

Using GetX (Get) for Navigation and Routing in Flutter

Updated: October 3, 2022 By: A Goodman

Introduction Flutter already provides built-in navigator APIs that can help us navigate between screens (routes) and show dialogs, snack bars, and bottom sheets without installing a third-party library. They are good and easy to use. However,…

2 Ways to Create Multi-Line Strings in Dart

Updated: April 22, 2023 By: Pennywise

This concise and straightforward article shows you two different ways to create multi-line strings in Dart (and Flutter as well). Using Triple Quotes Both triple-single-quote (”’) and triple-double-quote (“””) work fine. Example: Output: Note that anything…

Flutter: Global Styles for AppBar using AppBarTheme

Updated: April 26, 2023 By: Pennywise

If your app has many screens with different app bars, using themes will bring many benefits such as: reducing the amount of code to write, and increasing the consistency of the appearance of the app. In…

Flutter: Dynamic Text Color Based on Background Brightness

Updated: April 26, 2023 By: A Goodman

This article shows you a couple of different ways to automatically change text color based on the brightness of background color. What Is The Point? Flutter provides a few methods that can help us get the…

How to Make a Confirm Dialog in Flutter

Updated: April 26, 2023 By: A Goodman

A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs help prevent accidental actions such as deleting content, closing…

1 19 20 21 22 23 46