
Signal Forms in Angular 21 replace FormGroup pain and ControlValueAccessor complexity with a cleaner, reactive model built on signals.

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

Explore how the Universal Commerce Protocol (UCP) allows AI agents to connect with merchants, handle checkout sessions, and securely process payments in real-world e-commerce flows.

React Server Components and the Next.js App Router enable streaming and smaller client bundles, but only when used correctly. This article explores six common mistakes that block streaming, bloat hydration, and create stale UI in production.
Hey there, want to help make our blog better?
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