How to Convert Base64 to PDF in Flutter

Base64 is a popular encoding format for representing binary data as text, and it’s widely used for encoding and decoding data in various applications. In this blog post, let’s learn how to convert base64 to PDF in Flutter. In this tutorial, we use a sample base64 string and convert it into PDF. Then we open … Read more

How to Create a PDF File in Flutter

PDF files are widely used for sharing and storing important documents, and with the rise of mobile applications, it’s become crucial to be able to generate PDF files on the go. In this blog post, let’s learn how to create a PDF in Flutter. In this tutorial, we use the pdf package to generate a … Read more

How to Open PDF in Flutter using PDF Viewer

PDF files are an integral part of our daily lives and we often come across a situation where we need to view PDF files on our mobile devices. In this blog post, let’s learn how to prompt the flutter app to open a PDF file using the default PDF viewer of your Android or iOS … Read more

How to Download PDF from URL in Flutter

The importance of PDF files needs no explanation. In this blog post, let’s check how to download a PDF file from a URL in Flutter. We use dio package for this tutorial. Dio is a powerful HTTP client which supports file downloading. Install dio to your Flutter project using the following command. You can import … Read more

How to Load PDF from URL in Flutter

PDFs are integral to many modern applications, allowing users to view and interact with complex documents on their mobile devices. In this blog post, we’ll learn how to load and view a pdf file from a URL in Flutter. We use the pdfx package to help create a pdf viewer in Flutter. Install the library … Read more

How to Load PDF from Assets in Flutter

PDF (Portable Document Format) is a widely-used file format for documents that need to maintain their formatting across multiple platforms and devices. In this blog post, we will explore how to load PDF files from the assets directory in a Flutter application. Here, We are using the pdfx package to display PDF files. You can … Read more

How to Detect Device Model in Flutter

Flutter device model details

A mobile app might be running on various mobile devices with different configurations. Hence, it’s important for developers to get the device model of the users. Then only the developer can address device-specific bugs and issues. Let’s check how to get device model in Flutter. The device info is a Flutter package that gives information … Read more

How to Convert Current Date and Time to UTC in Flutter

UTC is a widely used standard for representing the time and ensures that your applications are functioning correctly across different time zones. In this tutorial, we will be exploring the process of converting the current date and time to the Coordinated Universal Time (UTC) format in Flutter. We use DateTime class for this purpose. You … Read more

How to Get Current Date in Flutter

Everyone knows the importance of dates and time in mobile apps. In this blog post, let’s learn how to get the current date in Flutter. There’s a DateTime class in Dart that can be used to get the current date and time. This will give us the output as follows. 2020-10-18 20:39:17.566238 Most of the … Read more