Flutter

How to upgrade Flutter SDK and package dependencies

Updated: February 27, 2023 By: A Goodman

To upgrade Flutter SDK, run the following command: If the preceding command didn’t work for you, just add the –force flag, like this: To update all the dependencies listed in a Flutter project’s pubspec.yaml file to…

How to use Cupertino icons in Flutter

Updated: June 5, 2023 By: A Goodman

This article shows you how to use Cupertino icons (iOS-style icons) in a Flutter application using the CupertinoIcons class. How to use Cupertino icons? When you create a new Flutter project, cupertino_icons is added to the…

Flutter CupertinoSegmentedControl Example

Updated: May 27, 2023 By: A Goodman

The CupertinoSegmentedControl widget in Flutter displays widgets from a map in a horizontal list and also creates an iOS-style segmented control bar. When one option in the segmented control is selected, the other options in the…

Where is the AndroidManifest.xml file in a Flutter project

Updated: February 27, 2023 By: A Goodman

The AndroidManifest.xml file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. The AndroidManifest.xml file of a Flutter project locates at: Screenshot: If you only want to…

Using Hooks in Flutter (like React and React Native)

Updated: February 27, 2023 By: A Goodman

If you’ve worked with React or React Native, you should be familiar with hooks like useState, useEffect, etc. This article shows you how to use hooks in Flutter. With hooks, you can extract stateful logic from…

How to save network images to the device in Flutter

Updated: February 27, 2023 By: A Goodman

This article shows you how to save network images to the device’s storage when using a Flutter application. To send HTTP requests and work with the device’s filesystem better, we need 3 plugins: All of these…

How to pass functions to child widgets in Flutter

Updated: February 15, 2023 By: A Goodman

This article walks you through a complete example of passing functions from a parent widget to a child widget in Flutter (the child widget can be stateless or stateful, and the passed functions can be called…

Flutter: ColorTween Example

Updated: August 19, 2023 By: A Goodman

A quick example that demonstrates how to use the ColorTween widget in Flutter to create a smooth transition between two colors. Preview This small app displays a circle whose background color changes continuously from blue to…

How to implement Star Rating in Flutter

Updated: February 15, 2023 By: A Goodman

Most mobile applications and websites about e-commerce, ride-hailing, e-learning services, etc., have a function that allows users to rate products or services with the highest rating of 5 stars. or 10 stars. This tutorial shows you…

Flutter: AnimatedContainer example

Updated: February 15, 2023 By: A Goodman

This article walks you through a complete example of using the AnimatedContainer widget in Flutter. A Quick Note The AnimatedContainer widget, as its name self describes, is used to make containers that automatically animate between the…

Flutter TweenAnimationBuilder Examples

Updated: August 19, 2023 By: A Goodman

A few examples of implementing TweenAnimationBuilder in Flutter. A Pulsing Star What we are going to do here is to create a pulsing circle star in the lonely, limitless purple universe. App Preview The complete code…

How to check numeric strings in Flutter and Dart

Updated: February 14, 2023 By: A Goodman

A numeric string is a string that represents a number. Numeric strings can contain digits (0-9) and may also include a decimal point, a minus sign (for negative numbers), and an optional exponential notation (for very…

1 26 27 28 29 30 41