Haris Bin Nasir
Author: Haris Bin Nasir
-
·
How To: Colorize Flutter Debug Console Log
In this article, we will be taking a look at how to colorize Flutter debug log statements using the dart:developer package. Fixing issues and building apps with Flutter is more interesting and pleasant when messages are logged in multiple colors. This post will demonstrate how to accomplish this without the need of any third-party plugins.…
-
·
Dart: Convert/Parse JSON String, Array into List/Object
Convert JSON String or Array into List or Object in Dart/Flutter In this dart / flutter lesson, we’re going look at how to convert/parse JSON text into Object, Nested Object, how to parse JSON array, array of JSON items into List. Finally, complicated JSON may be parsed into Nested Objects (that also contains array as…
-
·
Introduction To Null Safety In Dart
What is Dart Null Safety? In basic terms, null safety in dart means that a variable cannot have a ‘null’ value unless it was started with null. All runtime null-dereference problems will now be shown at compile time, thanks to null safety. Dart Null Safety Code Example We constructed a class in the preceding dart…
-
·
Flutter Cupertino TabBar Tutorial | iOS Style Bottom Navigation Flutter
Introduction: Flutter Cupertino TabBar Cupertino tabbar is a Flutter version of the iOS bottom tabbar or bottom navigation bar. The CupertinoTabBar widget allows us to add an iOS-style tabbar to our project. It’s comparable to the android platform’s bottom navigation bar in flutter. It shows a row of tabs with a label and an icon…
-
·
Implement Facebook Authentication In Flutter
In this tutorial, I’ll show you how to integrate Facebook authentication within your Flutter applcation. A multi-step authentication sequence that allows you to sign a user into an account or link them to an existing one is known as social authentication. So let’s get going and see how to implement facebook social login into our…
-
How To: Draw Charts Using fl_chart in Flutter
Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart are all supported by fl_chart, a highly customisable Flutter chart library. This post demonstrates how to create basic bar charts in Flutter using fl chart, one of the most widely used chart plugins today. Install fl_chart plugin into Flutter Import fl_chart Draw Simple Bar…
-
How To: Deploy Django using Docker & MySQL
During the setup of MySQL with Django using Docker, I ran into few issues. As a result, I decided to write this article to help people trying to figure out on how to deploy a Django app using Docker and MySQL. MySQL is a relational database management system that is free and open-source. “My” is…
-
·
Python Sleep Introduction
Have you ever needed to wait for something in your Python program? While you generally want your code to run as quickly as possible, there are times when using sleep() function in Python to delay execution is beneficial. To mimic a delay in your software, for example, you may use the Python sleep() function. It’s…
-
Flutter Unit Testing Using Mockito
When writing a unit test for a function, you may wish to mock or stub the results of other functions called from the test function. This post demonstrates how to use Mockito to write a unit test for a Flutter application (or any other Dart-based application). Importing Mockito Into Flutter Project This tutorial makes use…
-
Upload Files In Google Drive Using Flutter
We’ll learn how to incorporate Google Drive into the Flutter app in this tutorial. We’ll learn how to use Flutter to upload, list, and download files to Google Drive. For authentication, I used Google Plus, and then I went to Google Drive. I looked into the Google Drive API, but ultimately decided that this method…