How to Build a Bottom Navigation Bar in Flutter Step-by-Step

About This Video

Learn how to build a modern Bottom Navigation Bar in Flutter step-by-step. Master Material 3 design, handle tab switching, and preserve widget state using IndexedStack. Perfect for beginners and scalable apps. Want to build a flawless bottom navigation bar in Flutter without losing your user's page data or scroll position? In this step-by-step Flutter tutorial, we are building a clean, modern Bottom Navigation Bar from scratch. Most beginners build bottom bars that completely reset the screen every time a user switches tabs. I'll show you exactly how to fix that using IndexedStack for absolute state persistence! Whether you are completely new to Flutter or looking to implement clean Material 3 navigation design, this video has you covered. Timestamps: 0:00 - Introduction & The Common State Mistake 0:45 - Project Setup & UI Screens 1:50 - Building the BottomNavigationBar Widget 3:15 - Fixing the Tab Reset Bug with IndexedStack 4:40 - Custom Styling & Material 3 Updates 5:50 - Best Practices & Wrap Up If you found this tutorial helpful, don't forget to like, subscribe, and hit the notification bell for more clean Flutter tutorials! šŸ”” #Flutter #Dart #MobileDevelopment #FlutterTutorial #AppNavigation Q: Why does my Flutter bottom navigation bar reset screen state when switching tabs? A: By default, if you switch pages by rendering them dynamically out of a standard List[index], Flutter removes the unselected widget from the widget tree entirely. This destroys its state, resetting scroll positions and input fields. To prevent this, wrap your page list in an IndexedStack widget, which keeps all tabs alive in memory. Q: What is the difference between BottomNavigationBar and NavigationBar in Flutter? A: BottomNavigationBar is the classic Material 2 component. In newer versions of Flutter, Google prefers NavigationBar, which follows Material 3 specifications, bringing updated visual container states, built-in pill shape indicators, and native fluid animations out of the box. Q: How many tabs should a bottom navigation bar have? A: According to Material Design guidelines, a bottom navigation bar should strictly contain between 3 and 5 destinations. If you have fewer than 3 options, use standard buttons or tabs. If you have more than 5, implement a side navigation drawer or a "More" menu item.

#Flutter#Dart#MobileDevelopment#FlutterTutorial#AppNavigation

Related Videos

Claude Code + VS Code: Free AI Coding Setup (2026 Guide)
Watch Tutorial

Claude Code + VS Code: Free AI Coding Setup (2026 Guide)

Set up Claude Code in VS Code for free in under 10 minutes. Install, authenticate, configure CLAUDE.md, and add a local fallback for unlimited coding. H1: How to Set Up Claude Code in VS Code for Free. Claude Code runs inside VS Code through Anthropic's official extension. Install Node.js, add the Claude Code extension from the VS Code Marketplace, sign in with a free Anthropic account, and open the panel with the keyboard shortcut. Setup takes about five minutes and requires no paid subscription to start. H2: What is Claude Code for VS Code? H2: Is Claude Code free to use in VS Code? H2: How do you install the Claude Code extension? (numbered steps, one action per step) H2: What are the system requirements? H2: How do you get better results with a CLAUDE.md file? H2: How do you run a free local model as a fallback? H2: Claude Code vs Cursor vs GitHub Copilot: which is free? (comparison table — tables get cited heavily in AIOs) H2: Common setup errors and fixes H2: Frequently asked questions FAQ block (mark up with FAQPage schema): Is Claude Code free? — There is a free tier with usage limits, plus the VS Code extension itself is free. Heavier daily use generally requires a paid plan or API credits. Do I need the terminal? — No. The extension gives you a full GUI panel, though the CLI remains available. Does it work offline? — Not on its own. Pair it with a local model runner like Ollama for offline coding. Which languages does it support? — Any language VS Code supports; results are strongest in widely-used ecosystems like Python, JavaScript, TypeScript, and Go.

Sep 10, 2026
Read →
How to Use Claude Code in Google Antigravity (2026 Guide)
Watch Tutorial

How to Use Claude Code in Google Antigravity (2026 Guide)

H1: How to Use Claude Code in Google Antigravity (Free Setup Guide) You can use Claude Code in Google Antigravity because Antigravity is built on a VS Code fork. Install the Claude Code extension from the Extensions panel, or run the Claude Code CLI in Antigravity's integrated terminal. Antigravity is free to download; Claude Code requires your own Claude plan or API key. H2: Can you use Claude Code inside Google Antigravity? Yes. Google Antigravity is a fork of Visual Studio Code, so the Claude Code extension installs from the Extensions marketplace (Ctrl+Shift+X, or Cmd+Shift+X on macOS). Claude Code also runs in Antigravity's integrated terminal via the CLI. Many developers prefer the terminal method because it handles context management more efficiently than the extension. H2: How do you install Claude Code in Antigravity? Download Antigravity from antigravity.google and sign in with a Google account. Open the Extensions panel, search "Claude Code," and install it. Then authenticate with either a Claude subscription login or an Anthropic API key. Alternatively, install the Claude Code CLI and launch it inside Antigravity's terminal with the claude command. H2: Is Google Antigravity free? Google Antigravity is free to download and includes a free tier with Gemini model access. Free-tier usage runs on a quota that refreshes roughly every five hours, alongside a weekly cap. Paid Google AI plans raise both limits. Antigravity's free tier does not include Claude Code access — that requires a separate Anthropic plan. H2: Do you need a Claude subscription to use Claude Code in Antigravity? Yes. Antigravity's free quota covers its own bundled models, not Claude Code. Running Claude Code inside Antigravity requires either a Claude Pro or Max subscription or an Anthropic API key billed per token. The API key suits occasional use; a subscription is more predictable for daily coding. H2: Claude Code vs Antigravity Agent — which should you use? Antigravity's built-in agent manager handles parallel tasks, browser automation, and multi-agent orchestration inside the editor. Claude Code is a terminal-first agent that developers generally rate higher for code quality, refactoring, and debugging. Running both in one editor lets you use Antigravity for orchestration and Claude Code for precision work. H2: Why hit rate limits, and how do you avoid them? Antigravity enforces a five-hour refreshing quota plus a weekly cap, and heavy agent runs consume quota quickly. To stretch it: route routine tasks to Antigravity's free models, reserve Claude Code for complex refactors, keep context windows small, and avoid re-running long agent loops on unchanged code. H2: Which models does Antigravity support? Antigravity offers multiple frontier models including Google's Gemini family, Anthropic's Claude Sonnet models, and OpenAI open-weight models, selectable per agent task. The exact model lineup changes frequently as vendors ship new versions, so check antigravity.google/docs/models for the current list before relying on a specific version. One caution: model version numbers in this space rotate fast and there have been reported mismatches between Antigravity's model labels and what's actually served. Keep version numbers out of your evergreen copy where you can, and link to the official docs page instead — a wrong version number is the fastest way to lose AIO trust on a page. { "@context": "https://schema.org", "@graph": [ { "@type": "VideoObject", "name": "How to Use Claude Code in Google Antigravity FREE (Full Setup)", "description": "Full setup guide for running Claude Code inside Google Antigravity: extension install, terminal CLI method, authentication, and free-tier quota tips.", "thumbnailUrl": "https://i.ytimg.com/vi/DXQUU2yrAMo/maxresdefault.jpg", "uploadDate": "2026-09-08", "duration": "PT5M30S", "embedUrl": "https://www.youtube.com/embed/DXQUU2yrAMo", "author": {"@type":"Person","name":"Adrian","url":"YOUR_CHANNEL_URL"}, "hasPart": [ {"@type":"Clip","name":"Installing Antigravity","startOffset":35,"url":"https://www.youtube.com/watch?v=DXQUU2yrAMo"}, {"@type":"Clip","name":"Installing the Claude Code extension","startOffset":70,"url":"https://www.youtube.com/watch?v=DXQUU2yrAMo"}, {"@type":"Clip","name":"Authentication: Pro vs API key","startOffset":115,"url":"https://www.youtube.com/watch?v=DXQUU2yrAMo"}, {"@type":"Clip","name":"Free tier limits and quota tips","startOffset":255,"url":"https://www.youtube.com/watch?v=DXQUU2yrAMo"} ] }, { "@type": "HowTo", "name": "How to install Claude Code in Google Antigravity", "totalTime": "PT5M", "step": [ {"@type":"HowToStep","position":1,"name":"Download Antigravity","text":"Go to antigravity.google, download the installer for your OS, and sign in with a Google account."}, {"@type":"HowToStep","position":2,"name":"Open Extensions","text":"Press Ctrl+Shift+X (Cmd+Shift+X on macOS) to open the Extensions panel."}, {"@type":"HowToStep","position":3,"name":"Install Claude Code","text":"Search for 'Claude Code' and click Install."}, {"@type":"HowToStep","position":4,"name":"Authenticate","text":"Sign in with your Claude subscription or paste an Anthropic API key."}, {"@type":"HowToStep","position":5,"name":"Run your first task","text":"Open the integrated terminal, run the claude command, and give it a task in your project directory."} ] }, { "@type": "FAQPage", "mainEntity": [ {"@type":"Question","name":"Can you use Claude Code in Google Antigravity?","acceptedAnswer":{"@type":"Answer","text":"Yes. Antigravity is built on a VS Code fork, so the Claude Code extension installs from the Extensions marketplace, and the Claude Code CLI runs in Antigravity's integrated terminal."}}, {"@type":"Question","name":"Is Google Antigravity free?","acceptedAnswer":{"@type":"Answer","text":"Antigravity is free to download and includes a free tier with Gemini model access on a quota that refreshes roughly every five hours, plus a weekly cap. Claude Code access requires a separate Anthropic plan or API key."}}, {"@type":"Question","name":"Do you need a Claude subscription?","acceptedAnswer":{"@type":"Answer","text":"Yes. Antigravity's free quota covers its own bundled models only. Claude Code requires a Claude Pro or Max subscription or an Anthropic API key."}}, {"@type":"Question","name":"Is Claude Code better than Antigravity's agent?","acceptedAnswer":{"@type":"Answer","text":"Antigravity's agent manager is stronger for parallel tasks and browser automation; Claude Code is generally rated higher for code quality, refactoring, and debugging. Using both together is a common workflow."}} ] } ] }

Sep 8, 2026
Read →
Codex + OmniRoute Setup = FREE Unlimited AI Tokens (Setup in 7 Minutes)
Watch Tutorial

Codex + OmniRoute Setup = FREE Unlimited AI Tokens (Setup in 7 Minutes)

Stop burning credits in Codex CLI. In this video I connect OpenAI Codex to OmniRoute — a free, open-source, MIT-licensed local AI gateway that pools 290+ providers and 90+ free tiers behind one endpoint — and get it running end to end in about 7 minutes. OmniRoute runs on your own machine (localhost:20128), auto-falls back when a provider hits its quota, and stacks RTK + Caveman compression to cut token usage dramatically. Point Codex at one base URL and you get Claude, GPT, Gemini, Kimi, GLM, DeepSeek and hundreds more through a single config. āš ļø Honest disclaimer: "unlimited" is shorthand for pooled free tiers (~1.4–1.5B tokens/month by OmniRoute's own pool-deduped count), not infinite tokens. Some providers restrict gateway use in their terms — check each provider's ToS before you route production work through it. This is an educational walkthrough of an open-source tool, not a way to bypass anyone's billing. ā±ļø CHAPTERS 00:00 — Why Codex eats your credits 00:45 — What OmniRoute actually is (290 providers, one endpoint) 01:30 — Install: npm i -g omniroute 02:20 — First run + the dashboard tour 03:10 — Connecting your first FREE providers 04:15 — Pointing Codex CLI at OmniRoute (config.toml) 05:20 — Testing it: model "auto" and auto-fallback in action 06:10 — Combos, routing strategies & token compression 06:50 — Costs, limits and what to watch out for šŸ”— LINKS OmniRoute (GitHub): https://github.com/diegosouzapw/OmniRoute OmniRoute site: https://omniroute.online OpenAI Codex CLI: https://github.com/openai/codex šŸ’¬ Which provider combo are you running? Drop it in the comments — I'm collecting the best free-tier stacks for a follow-up video. šŸ‘ Like + subscribe for more AI coding workflow videos. #Codex #OmniRoute #AICoding #OpenSource #developertools omniroute setup omniroute codex how to install omniroute codex omniroute codex unlimited omniroute how to setup omniroute install omniroute omniroute installation omniroute free unlimited codex omniroute install omniroute github setup omniroute omni route codex omniroute tutorial how to use omniroute how to use codex unlimited codex free unlimited omniroute combo omniroute combos omniroute + codex codex free codex codex with omniroute how to download omniroute how to use codex free onmiroute free ai how omniroute works omni route what is omniroute omniroute vs code codex token codex router use codex for free free codex omniroute config ominiroute como usar omniroute how to set up omniroute omni router

Aug 29, 2026
Read →