Flutter

How to make an image carousel in Flutter

Updated: March 23, 2023 By: A Goodman

Many Flutter applications have carousels to display some featured images on home screens or detail screens. In general, a carousel allows you to infinitely loop through its items by swiping the screen. When you reach the…

Flutter: Show/Hide Password in TextField/TextFormField

Updated: August 6, 2023 By: A Goodman

What is the Point? To hide an entered password in a TextField/TextFormField, just set its obscureText property to true: Screenshot: To show the entered password for the user to read it, set obscureText to false: Screenshot:…

Flutter Draggable example

Updated: March 24, 2023 By: A Goodman

This concise article shows you how to use the Draggable widget in Flutter through a full example. In general, the Draggable widget goes along with the DragTarget widget: Below is a complete example of implementing the…

Dart regex to validate US/CA phone numbers

Updated: February 14, 2023 By: A Goodman

Validating phone numbers is a common task when making Flutter applications. Before sending an SMS with a verification code (that usually costs real money), we should implement some basic checks. In this article, we’ll use a…

How to add a Share button to your Flutter app

Updated: March 23, 2023 By: A Goodman

This article shows you how to implement a share button to share content from your Flutter app via the platform’s share dialog by using a plugin called share_plus. The share dialog may contain SMS, Messenger, Facebook,…

How to find the iOS Bundle ID of a Flutter project

Updated: March 23, 2023 By: A Goodman

This short article shows you a couple of different ways to find the iOS bundle identifier of a Flutter project. Using Xcode 1. Open the ios folder of your Flutter project by using XCode. 2. Click…

Flutter error: No Firebase App ‘[DEFAULT]’ has been created

Updated: March 23, 2023 By: A Goodman

Problem When working with Flutter and Firebase, you may fall into the following error: Don’t panic. We will tackle this bug. Solution Before using any Firebase services, you have to initialize the Firebase app by calling…

Flutter: Correctly adding GoogleServices-Info.plist to iOS

Updated: April 23, 2023 By: A Goodman

If you’re building an iOS app with Flutter and Firebase then you’ll have to add a GoogleServices-Info.plist file to your project. If you just copy and paste this file into the Runner folder then there will…

How to use button themes in Flutter

Updated: March 24, 2023 By: A Goodman

This is a short and straight-to-the-point guide to implementing button themes in Flutter. In the old days, ButtonTheme used to be used, but nowadays it is obsolete and has been replaced by TextButtonTheme, ElevatedButtonTheme, and OutlinedButtonTheme….

How to render HTML content in Flutter

Updated: February 18, 2023 By: A Goodman

If you’re building a magazine/newspaper application (or something like that) with Flutter, you may want to render some HTML content (which usually is fetched from a remote server). This article shows you how to do so…

Flutter DecoratedBoxTransition example

Updated: August 19, 2023 By: A Goodman

In general, the DecoratedBoxTransition widget usually goes with the following widgets/classes: Below is a complete example of using the DecoratedBoxTransition widget in a Flutter application. Example This example creates a circle whose color, shape, shadow, and…

How to get user current location in Flutter

Updated: February 27, 2023 By: A Goodman

This is a short guide to getting the user’s current location in Flutter by using a plugin called location. Installation 1. Add location and its latest version to the dependencies section in your pubspec.yaml file by…

1 25 26 27 28 29 41