How to set Font Size Weight Color Decoration of Text in Flutter

How to set Font Size, Weight, Color, Decoration of Text in Flutter In Flutter, you can set the font size, weight, color, and decoration of text using the TextStyle widget. The TextStyle widget is used to define the text style, including the font family, font size, font weight, color, and text decoration. Here’s an example…

|

How to Get Difference Between Two DateTime in Dart/Flutter

How to Get Difference Between Two DateTime in Dart/Flutter In Dart/Flutter, there are several ways to get the difference between two DateTime objects. Here are some examples: The difference() method returns a Duration object that represents the difference between two DateTime objects. The inDays property returns the number of days between two DateTime objects. These…

|

How to Play Audio in Flutter | Full Audio Player Code Example

How to Play Audio in Flutter | Full Audio Player Code Example To play audio in Flutter, you can use the audioplayers plugin, which provides a simple API to play audio files. Here is an example of how to play audio in Flutter using the audioplayers plugin: Here’s an example of a full audio player…

|

How to add Horizontal and Vertical Divider on Flutter

As a Flutter developer, you may often need to add horizontal and vertical dividers to your app’s UI. These dividers help to visually separate different sections of the UI and make it easier for the user to understand the layout. In this tutorial, we’ll learn how to add horizontal and vertical dividers in Flutter with…

|

How to Open Phone Dialer with Number in Flutter

In today’s world, mobile devices are used by almost everyone for communication and other purposes. In mobile applications, it is important to have a feature to make phone calls from the application itself. In this blog post, we will discuss how to open the phone dialer with a specific number in a Flutter application. How…

|

How to Calculate Distance between Two Locations on Google Map in Flutter

Flutter is an open-source mobile application development framework that is used to develop high-quality, high-performance and visually appealing applications for iOS and Android platforms. One of the most commonly used features of Flutter is the Google Maps widget, which provides a simple and convenient way to display maps and locate different places on the map….

|

How to Add Navigation Drawer Below App Bar and Set Menu Icon in Flutter

Navigation Drawer is one of the most important components of Material Design. It provides quick navigation to different parts of an app, making it easy for users to access content they need. In this blog post, we’ll show you how to add a navigation drawer below the app bar and set a menu icon in…

|

How to Show Automatic Internet Connection Offline Message in Flutter

In today’s world, the internet has become an essential part of our lives. It is necessary for almost every task we do, from social media browsing to online shopping. Hence, it is important to show a proper message to the user when the device is not connected to the internet. In this tutorial, I will…

|

How To Add Ellipsis To Text in Flutter

Flutter – Wrap text on overflow, like insert ellipsis or fade Text widget doesn’t ellipsis correctly in Flutter TextOverflow.ellipsis not working even inside expanded Clip the 1st widget with ellipsis (on overflow) in a Row of 3 Text widgets How to add ellipsis to a text in a row in flutter Flutter Text Wrapping/Ellipsis Flutter…