
Compare ESLint and Oxlint, benchmark real speed gains, and learn when migrating to Oxlint makes sense for modern JavaScript teams.

Discover five practical ways to scale knowledge sharing across engineering teams and reduce onboarding time, bottlenecks, and lost context.

Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the March 4th issue.

Paige, Jack, Paul, and Noel dig into the biggest shifts reshaping web development right now, from OpenClaw’s foundation move to AI-powered browsers and the growing mental load of agent-driven workflows.
Would you be interested in joining LogRocket's developer community?
Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.
Sign up now
9 Replies to "Flutter TabBar: A complete tutorial with examples"
In this section
“” Preserving the state of tabs “”
you wrote :
” By default, tabs do not preserve the state ”
But without using ‘AutomaticKeepAliveClientMixin’, by changing the tab, the previous state remains the same
i use default_flutter_app ( counter app with FAB ) and Changing the tab does not return the number to 0
Please explain to me is this normal? Has Flutter changed anything?
Try to use IndexedStack it preserves state of your widget
Yes Maryam, This was the behaviour when I wrote this article. It might have got updated.
How to move this tab bar to bottom?
use safe area
How to get the focused tab more to left aligned?
The default tabbar’s focused tab is always centered-aligned, but I wanted it to get more on left-aligned.
References : DailyHunt, AirBnb
How to change popupmenu items items based on change in tabs?
Nicely written tutorial. Both the screenshots and code shown are compact, readable and to the point. Easy to understand. Thank you for doing this.
Nice trick ! ‘ AutomaticKeepAliveClientMixin’,
I was looking for this
Works like a charm for me in an app with tabs and fl_charts
Thank you very much