Mobile

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…

Dart regular expressions to check people’s names

Updated: February 14, 2023 By: A Goodman

The name of a person (in common languages) usually contains the letters A through Z (lowercase or uppercase), spaces, periods (in abbreviations), and may contain dashes. Examples of human names: This is a simple regex pattern…

Base64 encoding and decoding in Dart (and Flutter)

Updated: February 14, 2023 By: A Goodman

What are the points? To encode or decode Base64 in Dart, you can import and use the dart:convert library: For base64 decoding, use one of these 2 methods: For base64 decoding, use one of the following…

1 29 30 31 32 33 46