Skip to main content

Posts

Showing posts with the label widgets

Flutter: TabView Widget Tutorial

Introduction In this tutorial, we are going to learn how to create Tabs in Flutter using the TabView widget. There are plenty of apps using Tabs and they provide a clean and compact design of the app. Table of Contents Project Setup Code Conclusion Project Setup We do not need and other plugins for this tutorial. Also, you can proceed with your own project or create a new project for this tutorial. Here is the Starting Code of the app. import 'package:flutter/material.dart' ; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @ override Widget build(BuildContext context) { return MaterialApp( title: 'TabView Tutorial All About Flutter' , theme: ThemeData( primarySwatch: Colors.yellow, ), home: HomePage(), ); } } class HomePage extends StatelessWidget { const HomePage({Key? key}) : super (key: key); @ override Widget build(BuildContext co...