Categories
Dart Flutter

How To Decode A JSON Web Token(JWT) In Dart

This post covers the topic how to decode a JSON Web Token(JWT) in dart. We will learn about different elements of JWT and then write a function to extract payload data from token value. Introduction JSON Web Token (JWT) is an industry standard mechanism to pass security credentials and claims in a client-server architecture. A […]

Categories
Flutter

Generating Random Values In Dart

In this post, we will learn to generate various kinds of random values in Dart for your Flutter application. As a bonus, we will cover generating a random number including both positive and negative numbers. Introduction Often we need to work with random values in our application. Maybe we need to generate a random number […]

Categories
Flutter

Button Animations In Flutter using AnimatedBuilder

In this post we will learn to build button animations in Flutter using AnimatedBuilder widget. We will learn to create different variations of sweep effects like left to right and right to left on button click. Introduction Showing animations in any app is a great way to improve user experience. Even a small and basic […]

Categories
Flutter

How To Call Method Of A Child Widget From Parent In Flutter

In this post we will learn how we can call methods of a child widget from a parent widget using GlobalKey. Introduction Often times we are faced with a senior where we want to call methods of child widget. Maybe you want to call it’s dispose method or want to update it’s state by calling […]

Categories
Flutter

Detect Keyboard Visibility In Flutter App

In this post, we will learn how we can detect keyboard visibility in flutter application. Introduction In Flutter, user input fields like TextField automatically pops up keyboard when in focus. Similarly, the keyboard hides itself when you move the focus to a different widget or press back button. Now, if you want to keep track […]

Categories
Flutter

Adding Packages In Flutter App

In this post we will look at the various ways for adding packages in Flutter application. Introduction To add a new package to a Flutter application, we need to add a reference to it as a dependency in the pubspec.yaml file. There are different ways to add packages in a Flutter application. Mainly, you can […]

Categories
Flutter

Shortcut Keyboard For TextField Widget

In this post, we will add a shortcut keyboard for TextField widget in Flutter app. Introduction Let’s say you have a user input field where users type in certain data. If user has to type a certain word or character frequently, you might want to provide a shortcut to such texts. For an example, users […]

Categories
Flutter

Flutter Tutorial: Building An Expense Manager App – 6

This is the sixth part of Expenses Manager app Flutter tutorial series where we are building an Expenses Manager app. Introduction In the previous post, we completed all the functionalities of creating Category. In this part of our Flutter tutorial, we will add features for working with expenses. We will design the home page and […]

Categories
Flutter

Flutter Tutorial: Building An Expense Manager App – 5

This is the fifth part of Flutter tutorial series where we are building an Expenses Manager app. Introduction We have already created functionalities to create new category and get all categories previously. Now, in this part of the complete Flutter tutorial series, we will add features for: Deleting category item from a list Built Value […]

Categories
Flutter

Flutter Tutorial: Building An Expense Manager App – 4

This is the fourth part of Flutter tutorial series where we are building an Expenses Manager app. Introduction In our previous post of the Flutter tutorial series, we created a page to add new category. In this part, we will finish off the creating expense category of the application. We will be implementing the BLoC […]