Flutter CupertinoSegmentedControl Example
Updated: May 27, 2023
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......
Write a simple BMI Calculator with Flutter (Updated)
Updated: May 18, 2023
In this article, we’ll build a simple BMI (body mass index) calculator with Flutter from scratch. This tutorial aims at people who are new to Flutter, so I’ll make it as simple as possible with the latest Flutter updates......
Flutter ColorFiltered Examples
Updated: May 18, 2023
A few examples of using the ColorFiltered widget in Flutter. A Prefatory Note The ColorFiltered widget is used to apply a color filter to its child widgets. It takes 3 parameters: key (optional), child (a child widget –......
Flutter: 5 Ways to Add a Drop Shadow to a Widget
Updated: May 18, 2023
This practical article shows you a couple of different ways to add a drop shadow to a widget in Flutter. The first four approaches are to use self-written code while the last one is to make use of a third-party package (for special......
Flutter: Creating Transparent/Translucent App Bars
Updated: May 18, 2023
In Flutter, you can create a transparent or translucent app bar by doing the following things: Set the backgroundColor property of your AppBar widget to completely transparent (Colors.transparent) or translucent (a color with opacity......
Flutter: How to Create a Custom Icon Picker from Scratch
Updated: May 18, 2023
The example below shows you how to create a custom icon picker from scratch in Flutter. There is no need to install any third-party packages so our icon picker will be neat and extremely flexible (you can design it the way you want),......
Flutter: Hiding the Status Bar on iOS and Android
Updated: May 18, 2023
This article is about hiding and showing the status bar in Flutter applications. Overview A status bar presents some information such as time, wifi, battery life, etc. Here is the status bar on iOS (the left one) and Android (the......
Flutter: Make Text Clickable like Hyperlinks on the Web
Updated: May 18, 2023
If you have worked a bit with HTML and web frontend then you should be not unfamiliar with hyperlinks, which are added with <a> tags and are clickable to perform some action like opening a URL, displaying a modal box, showing a......
Viewing PDF files in Flutter
Updated: May 18, 2023
This article walks you through a couple of examples of viewing PDF (.pdf) documents from within a Flutter app. We are going to use the following PDF file for testing......
How to create selectable text in Flutter
Updated: May 18, 2023
This article shows you how to create selectable and copiable text in Flutter. Overview In Flutter, the text presented by the Text widget is undetectable (even on the web). To make text selectable, you can use the SelectableText......
Flutter web: Removing hash symbol (#) from all URLs
Updated: May 18, 2023
This article shows you how to remove the hash symbol (#) from Flutter web application URLs. You’ll also learn a technique to avoid a common error you will likely run into if you’re building a cross-platform......
Flutter: Don’t use BuildContexts across async gaps
Updated: May 03, 2023
The Problem When working with one of the recent versions of Flutter, you might be annoyed by the following warning: Do not use BuildContexts across async gaps This warning means that you should not use BuildContext after an......