FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
106 stars 18 forks source link

bug with conditional visibility and potentially animations #3210

Open VmarcellusR opened 1 week ago

VmarcellusR commented 1 week ago

Can we access your project?

Current Behavior

I have 2 containers, both show categories. The first one is a list view and the user can scroll it horizontally across the page. Second one is a grid view which displays more categories at the same time.

If the user would click on 'show all' then it would change app state called 'AllCategories' to be 'true' (it's 'false' by default), then because of conditional visibility container with the list view and text 'show all' would be hidden, and container with grid view and text 'hide' would appear. After clicking on 'hide' new 'true' containers would hide and 'false' containers would appear.

The problem: I added some 'on trigger' animations to containers with lists. Both groups would have animation only while appearing. But when the page loads for the first time I can see the right container, unfortunately without visible list inside of it. after a few clicks on 'show all', 'hide' the lists with categories appear.

To be more exact, it worked before with animations, only thing that I changed was animation duration or starting point. But now even when I remove animations, the lists do not appear.

Thank you.

Expected Behavior

I expect from the second that page loads that it is going to show list view of categories. After clicking 'show all' it's going to hide the list view and show with animation a grid view with categories. And after clicking on 'hide' it's going to hide grid view and show the list view with animation.

Steps to Reproduce

  1. Go to home pgae
  2. you won't see anything under 'categories' text
  3. click on the text 'show all' then 'hide' until the categories will pop up atest btest

Reproducible from Blank

Bug Report Code (Required)

ITESl/Lfx5RgrsMD+s/AdMdAhQIhNmY1bZMnktVxRR4bG4DtPJoUeOPsQ0NKTdSqSlFIIFf+nkUC0/DKitrpCO0oBw6ubJhf0JVAURWVRmaVMMW0CoeWWHJSBdFYIWqO15mJvSN7LutsSlIe2zupNa3qNleeY8aSfxBlZ7vfcPo=

Visual documentation

atest btest

Environment

- FlutterFlow version: new one, I'm not sure
- Platform: web
- Browser name and version: brave
- Operating system and version affected: windows 10

Additional Information

This issue is quite annoying because it affects developing of other features. Thank you!

paulperez-dev commented 3 days ago

Hi @VmarcellusR! I was unable to reproduce that behavior. Can you please verify if it happens in a new project? If so, please share the bug report code so we can better identify the cause of the issue.

VmarcellusR commented 3 days ago

I deleted the animation and then both lists started displaying containers correctly.

On Thu, Jun 27, 2024 at 10:46 PM Paul Pérez @.***> wrote:

Hi @VmarcellusR https://github.com/VmarcellusR! I was unable to reproduce that behavior. Can you please verify if it happens in a new project? If so, please share the bug report code so we can better identify the cause of the issue.

— Reply to this email directly, view it on GitHub https://github.com/FlutterFlow/flutterflow-issues/issues/3210#issuecomment-2195451125, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFSOGU7E6QA7CUQ4DETW7KTZJRMXJAVCNFSM6AAAAABJZ536YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGQ2TCMJSGU . You are receiving this because you were mentioned.Message ID: @.***>