2021-02-24
1244
#flutter
Pinkesh Darji
34862
Feb 24, 2021 â‹… 4 min read

Flutter TabBar: A complete tutorial with examples

Pinkesh Darji I love to solve problems using technology that improves users' lives on a major scale. Over the last seven-plus years, I've been developing and leading various mobile apps in different areas.

Recent posts:

Deno logo over an orange background

How to migrate your Node.js app to Deno 2.0

Deno is a popular JavaScript runtime, and it recently launched version 2.0 with several new features, bug fixes, and improvements […]

Yashodhan Joshi
Dec 17, 2024 â‹… 7 min read
Angular icon over blue background

Generating OpenAPI API clients for Angular

Generate OpenAPI API clients in Angular to speed up frontend development, reduce errors, and ensure consistency with this hands-on guide.

Shalitha Suranga
Dec 16, 2024 â‹… 9 min read
Implementing Infinite Scroll In React Snap Carousel

Implementing infinite scroll in React with React Snap Carousel

Making carousels can be time-consuming, but it doesn’t have to be. Learn how to use React Snap Carousel to simplify the process.

David Omotayo
Dec 13, 2024 â‹… 10 min read
React Libraries For Building Forms And Surveys

React libraries for building forms and surveys

Consider using a React form library to mitigate the challenges of building and managing forms and surveys.

Hussain Arif
Dec 11, 2024 â‹… 7 min read
View all posts

9 Replies to "Flutter TabBar: A complete tutorial with examples"

  1. 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?

  2. 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

  3. Nicely written tutorial. Both the screenshots and code shown are compact, readable and to the point. Easy to understand. Thank you for doing this.

  4. 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

Leave a Reply