Flutter

Using GetX to make GET/POST requests in Flutter

Updated: September 27, 2022 By: A Goodman

GetX is a massively functional and open-source Flutter library that is the most popular these days, with over 10,000 likes on pub.dev. Although GetX provides a wide range of features, each feature is contained in a…

Flutter: Adding a Border to an Elevated Button

Updated: August 18, 2022 By: Snowball

In Flutter, you can add a border (and customize its thickness and color as well) to an elevated button by using the ElevatedButton.styleFrom() static method like this: In case you need to create a rounded border,…

Flutter: Adding a Border to an Icon Button (2 Approaches)

Updated: August 17, 2022 By: Augustus

This quick article shows you a couple of different ways to create an icon button with a border in Flutter. Using IconButton and Container What you need to do is simply wrap an IconButton widget within…

Hero Widget in Flutter: Tutorial & Example

Updated: January 5, 2023 By: A Goodman

This article is about the Hero widget and hero animations in Flutter. We’ll have a glance at the essence of those things and then examine a complete example of using them in practice. The TL;DR In…

Flutter: Get the Position of a Tap (X & Y coordinates)

Updated: September 15, 2023 By: A Goodman

This short and straightforward article shows you how to get the location (X and Y coordinates) of a tap in Flutter. What is the Point? What you need to do is to wrap your entire screen…

Flutter: Showing a Context Menu on Long Press

Updated: September 15, 2023 By: A Goodman

When developing apps with Flutter, there might be cases where you want to show a context menu when your user long presses on an element. The location of the context menu will be near the press…

Flutter: Turn an Image into a Base64 String and Vice Versa

Updated: August 10, 2022 By: Snowball

In Flutter, you can encode a local or network image (or another kind of file) to a base64 string like this: You can decode a base64 string to an image file like this: In case you…

TabBar, TabBarView, and TabPageSelector in Flutter

Updated: September 14, 2023 By: A Goodman

This practical article is about the TabBar, TabBarView, and TabPageSelector widgets in Flutter. We’ll have a glance at the fundamentals of those things and then examine a concrete example that demonstrates how they work together in…

Flutter: How to Add a Border to a ListTile

Updated: August 8, 2022 By: Guest Contributor

In order to add a border to a ListTile widget in Flutter, you can assign its shape property to RoundedRectangleBorder, BeveledRectangleBorder, or StadiumBorder. You have control over the thickness, color, and radius of the border. Let’s…

Flutter: Creating a Fullscreen Modal with Search Form

Updated: September 14, 2023 By: A Goodman

This practical article walks you through a complete example of implementing a fullscreen search modal in Flutter. Without any further ado, let’s get started. The Example Preview The small app we’re going to construct has an…

Flutter: PageView examples

Updated: September 14, 2023 By: A Goodman

This practical article walks you through a couple of different examples of implementing the PageView widget in Flutter. The first example is simple and straightforward, while the second one is a little bit complex because it…

Flutter: How to Format Numbers as Currency Strings

Updated: September 14, 2023 By: A Goodman

Overview In order to format numbers as currency strings in Dart and Flutter, we can make use of the NumberFormat class provided by a well-known, official package named intl. There are several constructors for the job….

1 4 5 6 7 8 41