Mobile

Flutter: Customizing Status Bar Color (Android, iOS)

Updated: August 24, 2023 By: A Goodman

This short post shows you how to change the status bar color (and control its text and icon brightness) in Flutter. iOS On iOS, the background color of the status bar is the same as the…

Viewing PDF files in Flutter

Updated: May 18, 2023 By: 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

Updated: August 24, 2023 By: A Goodman

This short post shows you 2 ways to count the number of words in a given string in Dart (and Flutter as well). Using the split() method We can use the split() method to return the…

Displaying Subscripts and Superscripts in Flutter

Updated: May 27, 2023 By: 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

Updated: March 31, 2023 By: A Goodman

The example below shows you how to capitalize the first letter of each word in a string (use a title case for each word in a string) in Dart (and Flutter as well). The code: Output:…

Flutter Vertical Text Direction: An Example

Updated: August 24, 2023 By: 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

Updated: May 27, 2023 By: A Goodman

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’

Updated: August 24, 2023 By: 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

Updated: April 26, 2023 By: 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

Updated: April 26, 2023 By: 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

Updated: May 18, 2023 By: 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 (with Explanations)

Updated: January 30, 2023 By: 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…

1 18 19 20 21 22 46