Flutter

Flutter: Finding X and Y coordinates of a widget at runtime

Updated: April 19, 2023 By: A Goodman

There may be times you want to calculate the X and Y positions of a widget in your Flutter application, for instance, programmatically scrolling to a particular destination when the user presses a tab or a…

Flutter: Scrolling to a desired Item in a ListView

Updated: February 3, 2023 By: A Goodman

This article shows you some different ways to programmatically scroll to a desired item in a ListView in Flutter, for instance, scrolling to the item with the index of N when the user presses a floating…

Flutter SliverList – Tutorial and Example

Updated: March 6, 2024 By: A Goodman

In this article (which was recently updated to keep up with the times), we will have a look at the SliverList widget and go over a complete example of using it in a Flutter application. What…

Using Stack and IndexedStack in Flutter

Updated: March 24, 2023 By: A Goodman

Flutter offers a lot of built-in widgets that can help us make gorgeous applications without writing too much code or installing too many third-party libraries just for building user interfaces. In this article, we will take…

Flutter ConstrainedBox – Tutorial and Examples

Updated: March 24, 2023 By: Guest Contributor

ConstrainedBox is a built-in widget of Flutter that lets you specify the maximum or minimum width and height of its child widget. In this tutorial, you’ll learn how to use the ConstrainedBox widget through some quick…

Flutter Cupertino Button – Tutorial and Examples

Updated: March 24, 2023 By: A Goodman

Flutter has libraries with lots of built-in widgets like Material and Cupertino. If you want to make an app that your target audience is iPhone and iPad users, then you’ll probably want to use the Cupertino…

Using RichText and TextSpan in Flutter

Updated: March 24, 2023 By: A Goodman

Every website and mobile app, more or less, contains text. In Flutter, you can display a paragraph text that has multiple different styles by using a RichText widget and a tree of TextSpan widgets in combination….

Working with Table in Flutter

Updated: January 30, 2023 By: A Goodman

Tables help us to display information in a clear and concise manner. In this article, we’ll take a look at the Table widget in Flutter and walk through 3 different examples of implementing it in mobile…

Using InteractiveViewer widget in Flutter

Updated: March 24, 2023 By: A Goodman

There may be times when your Flutter applications display large pictures in a small area of the screen. To see these images clearly, users will have to enlarge them. In the old days, we have to…

Show/hide a widget using Visibility

Flutter: Programmatically show/hide a widget using Visibility

Updated: March 23, 2023 By: A Goodman

There may be times when you want to programmatically show or hide a widget in your Flutter applications. One of the best ways to achieve so is to use the Visibility widget. In this article, we…

Examples of using ClipOval in Flutter

Updated: March 23, 2023 By: A Goodman

A few examples of using the ClipOval widget in Flutter. Example 1: Simple Usage In this example, ClipOval is used to clip its child widget to a round circle or an oval (depending on the ratio…

2 ways to remove duplicate items from a list in Dart

Updated: February 3, 2023 By: A Goodman

This article shows you a couple of different ways to remove duplicate items from a list in Dart (and Flutter, of course). The first one works well for a list of primitive data types. The second…

1 23 24 25 26 27 41