FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
115 stars 19 forks source link

TabBar widget error when compiled without text label #2965

Open II-ricky-bobby-II opened 3 months ago

II-ricky-bobby-II commented 3 months ago

Has your issue been reported?

Current Behavior

I have the TabBar widget on once page. After I have compiled the project and am in Test Mode, I navigate to the specific page with the TabBar widget. Once I get to that page I see a big red screen displaying the error that occurred. I can still navigate backward via the browser button, but there is no ability to interact with that specific page with the TabBar.

Expected Behavior

I expect to go to a page that has a TabBar widget without text or an icon and be able to interact with the page. Regardless if text or an icon are present.

Steps to Reproduce

  1. Create a project.
  2. Create one Home Screen WITHOUT a TabBar.
  3. Create one screen WITH a TabBar.
  4. Within each Tab of the TabBar, make sure there is no icon or text present.
  5. Run Test Mode
  6. Start on Home Screen and navigate to the screen with the TabBar widget.
  7. The page with the TabBar widget should generate a full red screen with an error.

Reproducible from Blank

Bug Report Code (Required)

IT48l8nfx492obgA+KX6YMEw/SAWQ187U+Yz1tZHZwo8KOPLB4kMTPTOTERCXcOidwhMIU78mWoW3NbeioXpLPEpFzmrfJxZzLhqZgGXbDuWRbqDFJWgOEYlTMNXfxXG0qarmx1DKvpadGw46jiTe+iQfDDUQpeyC1VNDq/LZO4=

Context

I am wanting to have the TabBar and its tabs invisible to the user. I am wanting to accomplish that by removing the text and icon from each tab.

Visual documentation

Screenshot 2024-05-21 at 8 33 56 PM

Additional Info

No response

Environment

- FlutterFlow version: 4.1.53
- Platform: MacOS
- Browser name and version: Safari 17.5
- Operating system and version affected: Sonoma 14.5

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

ignalauret commented 3 months ago

Hey @II-ricky-bobby-II thanks for your report. I can confirm that having a TabBar with no text inside the Tab (no need to make it on another screen) crashes the app. I will send this to our technical team, but just to help them understand here I have a question: What would you expect to see inside the tabs if nothing is there? Should the TabBar still work changing the page even though the Tab has nothing?

II-ricky-bobby-II commented 3 months ago

Glad I can be helping hand :)

I’m new to FF, so apologies for the following ignorance in talking about my use case. I have three pages that I want users to navigate between, but I only want them to use the button I create at the bottom. There must be a better method, but, again, I’m a youngster in this space.

Pic attached for reference!

ignalauret commented 3 months ago

Welcome to the FF community then! I would suggest until this issue is fixed, you try implementing a PageView instead. This will be the easiest approach to go for when implementing something like this.
Good luck!