How to Programmatically Take Screenshots in Flutter
This article shows you how to programmatically take screenshots in a Flutter app so that your users can capture their screens by pressing a button or something like that. You can also use this technique to…
Flutter Error: The argument type ‘String’ can’t be assigned to the parameter type ‘Uri’
If you’re using the http package (version 0.13 or newer), you might run into the following error when sending HTTP requests: The cause of this error is that the functions provided by the http package previously…
Flutter: Customize the Android System Navigation Bar
This article will show you how to customize the system navigation bar in an Android application written in Flutter such as changing the background color and the icon brightness, hiding or showing the bar while the…
Flutter Web: 2 Ways to Change Page Title Dynamically
By default, the page title of a Flutter web app is controlled by the title property of the MaterialApp widget but what if you want to update it when the app is running? This article shows…
Flutter ColorFiltered Examples
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…
Flutter PaginatedDataTable Example (with Explanations)
This article walks you through a complete example of implementing a data table with pagination in Flutter. We’ll use a built-in widget named PaginatedDataTable and the DataTableSource class to get the matter done. Example Preview We…
Flutter: Firebase Remote Config example (updated)
The process of updating a production app often takes a lot of time and effort, from editing the code to building the app bundles, updating the metadata on the App Store and Google Play, and especially…
Dart: Convert Map to Query String and vice versa
This article shows you how to turn a given map into a query string and parse a given query string into a map in Dart (and Flutter as well) without using any third-party packages. Convert a…
Flutter: 2 Ways to Make a Dark/Light Mode Toggle
This article walks you through a couple of different ways to switch between dark mode and light mode in a Flutter application. Using Self-Written Code This approach uses ValueListenableBuilder and ValueNotifier, the two built-in classes of…
Best Plugins to Easily Create Animations in Flutter
Animation effects in mobile apps are very common. However, implementing them sometimes consumes a lot of time and effort for developers. This article will introduce you to a list of great open-source animation packages for Flutter…
Flutter: Dismiss Keyboard when Tap Outside Text Field
This article shows you a simple way to dismiss the soft keyboard when the user taps somewhere outside a text field in your Flutter app. What is the point? A realistic scenario If you use a…
Dart: Find List Elements that Satisfy Conditions
When developing apps with Flutter and Dart, you’ll be working a lot with lists. One of the most common tasks when working with lists is finding elements that satisfy single or multiple conditions. This article walks…