Skip to content

"Intially expanded" property not working for dynamically generated Expandable widgets #2183

@AnirudhGoel

Description

@AnirudhGoel

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I've a list of list of 4 strings:
Screenshot 2024-01-16 at 2 01 35 PM

I'm dynamically generating 4 "Expandable" widgets using this list var.
Screenshot 2024-01-16 at 2 07 22 PM
Screenshot 2024-01-16 at 2 07 53 PM

I've set the "Initially Expanded" property of the Expandable widget to true.
Screenshot 2024-01-16 at 2 08 38 PM

But it is not working. All the expandables being generated are collapsed initially and have to be expanded manually every time. I've also tried replacing the ListView with a column.

Expected Behavior

The dynamically generated expandables should be expanded initially.

Steps to Reproduce

Add a ListView / Column Widget to your scaffold. Add a Expandable widget inside the ListView. Go to "Generating Children from Variable" tab of the ListView and use a list of strings to generate the expandables dynamically. Set the "Initially Expanded" property of the expandables to true.
Run the project, the expandables will be initially collapsed.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFTlc/qx4V2rscA+KX+b8AwtGMRCUMbW40VldZ+FBMgGJDtBIh/fvfsV1VoZ8u9TWlhHE78+X8xw/CJuIbLGvk4JTWrQLZHyqlyUw/jUXq8RJPRDqWCR0Z6EeZUJm6l4YmN3SJNLsRYLFYi3UOUOPPLShXXGZ+/Zwh9f6PHaOI=

Context

I'm trying to build an online food ordering app. This issue occurs on my restaurant's menu page. All the food categories are initially collapsed which hampers the User Experience and makes the page look awfully blank.

Visual documentation

FF.Bug.Report.mp4

Additional Info

No response

Environment

- FlutterFlow version: 3.13.7
- Platform: Web
- Browser name and version: Chrome Version 120.0.6099.129
- Operating system and version affected: iOS and Android

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions