Text Overflow in Flutter: Tutorial & Examples

April 25, 2022 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

April 20, 2022 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

April 18, 2022 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…

Flutter web: Removing hash symbol (#) from all URLs

April 15, 2022 Pennywise

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: Programmatically Check Soft Keyboard Visibility

April 14, 2022 The Plumber

This practical article shows you two different ways to programmatically detect whether the soft keyboard is showing up or not in a Flutter application. The first approach uses self-written code and the second one uses a…

Flutter: Floating Action Button examples (basic & advanced)

April 3, 2022 The Plumber

This article walks you through 4 different examples of using FloatingActionButton (FAB) in Flutter. These examples are arranged in order from basic to advanced, from simple to complex. Without any further ado, let’s get started. Large…

Flutter: AnimatedOpacity example

April 3, 2022 Pennywise

This article is about the AnimatedOpacity widget in Flutter. Preface The purpose of AnimatedOpacity, as the name implies, is to animate its child’s opacity over a given duration: You can control the rate of animation change…

How to Get Device ID in Flutter (2 approaches)

April 1, 2022 A Goodman

This article walks you through 2 examples that demonstrate how to get the device identifier in Flutter. Using platform_device_id If you need only the id of the device that your app is running on, the simplest…

Flutter: ExpansionTile examples

March 31, 2022 A Goodman

The ExpansionTile widget in Flutter is used to create expansible and collapsable list tiles. This article walks you through 2 examples of using that widget in practice. The first example is short and simple while the…

Working with MaterialBanner in Flutter

March 29, 2022 A Goodman

In this article, we’ll explore the fundamentals of the MaterialBanner widget in Flutter then walk through a complete example of implementing it in practice. Without any further ado, let’s get started. Overview MaterialBanner is used to…

Flutter: Show/Hide text labels of BottomNavigationBar items

March 22, 2022 Pennywise

In Flutter, you can show or hide text labels of items of a BottomNavigationBar by using the showSelectedLabels and showUnselectedLabels properties: showSelectedLabels: Determines whether the label corresponding to the selected BottomNavigationBarItem is shown or not. The…

Flutter: Your project requires a newer version of the Kotlin Gradle plugin

March 22, 2022 A Goodman

This short article shows you how to solve a problem you might encounter when developing an Android app with Flutter. The Error When trying to start a Flutter project with an Android emulator, I ran into…

1 2 3 4 32