Sushant Dhiman

Sushant Dhiman

Sushant Dhiman writes beginner-friendly Flutter and Dart tutorials covering widgets, layouts, navigation, dialogs, and state. He also covers Node.js, Express, and jQuery fundamentals.

How to Create a TabBar in Flutter

How to Create a TabBar in Flutter

When a Flutter screen has several related pages, a TabBar gives readers a way to choose which one to see. TabBar shows selectable labels, and TabBarView displays the page for the selected label. I’ll show how to define the tabs…

Flutter State Management: setState

Flutter State Management: setState

When a button changes a number on screen, the displayed value needs to follow the update. Flutter’s setState method tells Flutter that the widget subtree rooted at a State object may need rebuilding after its data changes. In this article,…

Flutter Dialogs: A Step-by-Step Guide

Flutter Dialogs: A Step-by-Step Guide

A screen sometimes needs to offer a choice without sending the user to another page. A Flutter dialog displays a temporary message or set of options above the current screen. I’ll show how to present choices with SimpleDialog and handle…

How to Implement the Flutter Scaffold Class?

How to Implement the Flutter Scaffold Class?

Scaffold.of(context) looks upward for a Scaffold, so the context that creates one cannot find it. I was surprised that a Builder in this example can find ScaffoldMessenger but is still too high for Scaffold.of. You’ll set the initial screen in…

Flutter App Bar: A Step-by-Step Guide

Flutter App Bar: A Step-by-Step Guide

Flutter can show a drawer or back control even when you omit leading from the AppBar. I was surprised that automaticallyImplyLeading can turn off that inference. Choose whether the screen needs a leading control or actions tied to it. Find…

Create a Horizontal List in Flutter

Create a Horizontal List in Flutter

A horizontal scroll list is a collection of items that we can scroll horizontally. For the simplest example let’s take Amazon. We can horizontally scroll between products on Amazon. In this tutorial, we are going to discuss how we can…