Flutter

How to Create Rounded ListTile in Flutter

Updated: August 24, 2023 By: A Goodman

In Flutter, you can implement a ListTile widget with rounded corners by setting its shape property to RoundedRectangleBorder(/*…*/). Below is a concrete example that demonstrates this. Screenshot: The code: Further reading: You can also take a…

Flutter: Creating Transparent/Translucent App Bars

Updated: May 18, 2023 By: A Goodman

In Flutter, you can create a transparent or translucent app bar by doing the following things: If you want the height of the body to be extended to include the height of the app bar and…

Flutter: How to Create a Custom Icon Picker from Scratch

Updated: May 18, 2023 By: A Goodman

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…

Flutter: How to Repair/Remove all Dependencies in .pub-cache

Updated: March 31, 2023 By: A Goodman

If you are developing an app using Flutter and have encountered a problem related to one or more packages being broken in the system cache (in the ./pub-cache folder), you can reinstall all your cached dependencies…

Flutter & Dart: How to Check if a String is Null/Empty

Updated: March 31, 2023 By: Napoleon

When working with Flutter and Dart, there might be cases where you have to check whether a given string is null or empty. We can define a reusable function to do the job as follows: We…

How to create selectable text in Flutter

Updated: May 18, 2023 By: Pennywise

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…

Flutter StatefulBuilder example

Updated: April 27, 2023 By: A Goodman

This article is about the StatefulBuilder widget in Flutter. We’ll cover the fundamentals of the widget then examine a complete example of using it in action. Overview The StatefulBuilder widget makes it possible to rebuild only…

TypeORM: Selecting Rows Between 2 Dates

Updated: May 3, 2022 By: A Goodman

The examples below show you how to select records between two given dates in TypeORM. The first one uses the find() function and the second uses query builder. Here’s the user entity that will have a…

TypeORM: Selecting Rows with Null Values

Updated: May 2, 2022 By: A Goodman

This succinct article is for people working with TypeORM who want to select records containing Null values. We’ll examine two examples. The first one uses the find() method, and the second uses Query Builder. Here’s the…

Text Overflow in Flutter: Tutorial & Examples

Updated: April 27, 2023 By: Pennywise

In Flutter, the overflow property of the Text, RichText, and DefaultTextStyle widgets specifies how overflowed content that is not displayed should be signaled to the user. It can be clipped, display an ellipsis (three dots), fade,…

Dart: Using Async and Await in Loops

Updated: March 31, 2023 By: Pennywise

In Dart (and Flutter as well), you can perform synchronous operations sequentially in loops by using Future.forEach. The example program below will print the numbers from 1 to 10. Every time it finishes printing a number,…

Using Font Awesome Icons in Flutter

Updated: April 27, 2023 By: A Goodman

This article covers almost everything you need to know about using Font Awesome icons in Flutter. Overview Font Awesome is a popular icon kit for websites and mobile apps which contains thousands of free icons (you…

1 7 8 9 10 11 41