Viewing PDF files in Flutter

July 25, 2021 Guest Contributor

This article walks you through a couple of examples of viewing PDF (.pdf) documents from within a Flutter app. We are going to use the following PDF file for testing purposes: Using advance_pdf_viewer plugin This package…

Dart & Flutter: 2 Ways to Count Words in a String

July 22, 2021 A Goodman

This short post shows you 2 ways to count the number of words in a given string. 1. Using split() method We can use the split() method to return the list of the substrings between the…

Displaying Subscripts and Superscripts in Flutter

July 18, 2021 A Goodman

There might be cases where you want to display some subscripts and superscripts in a Flutter application such as mathematical formulas, chemical equations, or physics curves. To render subscripts, you can set the style of Text…

Dart: Capitalize the First Letter of Each Word in a String

July 18, 2021 A Goodman

The example below shows you how to capitalize the first letter of each word in a string in Dart (and Flutter as well). The code: Output: Further reading: Flutter Vertical Text Direction: An Example Dart: Convert…

Flutter Vertical Text Direction: An Example

July 18, 2021 A Goodman

In Flutter, you can set the orientation of the text characters in a line to vertical by wrapping a Text widget inside a RotatedBox widget, like this: A Complete Example Screenshot: The full code: Continue learning…

How to Programmatically Take Screenshots in Flutter

July 17, 2021 A Goodman

This article shows you how to programmatically take screenshots in Flutter so that your users can capture their screens by pressing a button or something like that. You can also use this technique to periodically take…

Flutter Error: The argument type ‘String’ can’t be assigned to the parameter type ‘Uri’

July 17, 2021 A Goodman

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

July 11, 2021 A Goodman

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

July 1, 2021 A Goodman

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

June 24, 2021 A Goodman

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

June 24, 2021 A Goodman

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

June 17, 2021 A Goodman

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…

1 2 3 27