Has your issue been reported?
Current Behavior
Using the Swipable Stack Current Element value on an Image widget's Path property, when the Image widgets are generated as children within the SwipeableStack widget, causes the build to fail.
Expected Behavior
Using the Swipable Stack Current Element value on an Image widget's Path property, when the Image widgets are generated as children within the SwipeableStack widget, should show the images with their respective paths in the swipeable stack.
Steps to Reproduce
- Start a new project w/o firebase
- Add an app constant of type
ImagePath and call it theImagePaths, make it a list, add a few items
- Create a new page
- Place the
SwipeableStack widget on the page
- Select the
SwipeableStack widget, go to Generating Children From Variable, give the variable a name (like imagePaths) and set the value of the variable to the before created constant theImagePaths, save the variable
- Remove all
SwipeableStack pages except the first
- On the remaining
SwipeableStack page select the Image widget, set the Path property to Swipable Stack Current Element
- Run the app in test mode
Reproducible from Blank
Bug Report Code (Required)
IT8ghc+A5Yh1ocdD7q6JY8dFijoUCDs/a7gvjupqEAgafJSvBI13duP8XExDXbGBam1cJWaGmm0zwMmLhdrAU+0nCByJbLpZ/5N+TjvNTni5V7a2CJaOZUB6TOlMC0vDzpuZrRZAAO12LlVm3WGMG+eiVgPDQrmxDEYZBPykB9/XnVapHADgG30Jg1ZSfCvr
Context
I am currently blocked to build a more complex swipeable stack where access to the current element (in my case a struct with arrays included) is required to build the elements within the swipable stack.
Usually there is a workaround to address the current element by indexing the list with the index of the current element, but when the list elements contain another list there seems to be a limitation that I cannot select the nested list.
Visual documentation


Additional Info
The issue is that the Image builder uses index instead of imagePathsIndex (or in fact it should use the just defined variable imagePathsItem, which currently remains unused). index is available in the event handlers, but not in the itemBuilder:

The project with the issue can be found here: https://app.flutterflow.io/project/swipable-stack-index-issue-r66g9n?tab=uiBuilder&page=HomePage
Environment
- FlutterFlow version: 4.1
- Platform: Web, also VSCode after having pushed the source code to GitHub
- Browser name and version: Version 121.0.6167.139 (Official Build) (x86_64)
- Operating system and version affected: MacOS Sonoma Version 14.2.1
Has your issue been reported?
Current Behavior
Using the
Swipable Stack Current Elementvalue on anImagewidget'sPathproperty, when theImagewidgets are generated as children within theSwipeableStackwidget, causes the build to fail.Expected Behavior
Using the
Swipable Stack Current Elementvalue on anImagewidget'sPathproperty, when theImagewidgets are generated as children within theSwipeableStackwidget, should show the images with their respective paths in the swipeable stack.Steps to Reproduce
ImagePathand call ittheImagePaths, make it a list, add a few itemsSwipeableStackwidget on the pageSwipeableStackwidget, go toGenerating Children From Variable, give the variable a name (likeimagePaths) and set the value of the variable to the before created constanttheImagePaths, save the variableSwipeableStackpages except the firstSwipeableStackpage select theImagewidget, set thePathproperty toSwipable Stack Current ElementReproducible from Blank
Bug Report Code (Required)
IT8ghc+A5Yh1ocdD7q6JY8dFijoUCDs/a7gvjupqEAgafJSvBI13duP8XExDXbGBam1cJWaGmm0zwMmLhdrAU+0nCByJbLpZ/5N+TjvNTni5V7a2CJaOZUB6TOlMC0vDzpuZrRZAAO12LlVm3WGMG+eiVgPDQrmxDEYZBPykB9/XnVapHADgG30Jg1ZSfCvr
Context
I am currently blocked to build a more complex swipeable stack where access to the current element (in my case a struct with arrays included) is required to build the elements within the swipable stack.
Usually there is a workaround to address the current element by indexing the list with the index of the current element, but when the list elements contain another list there seems to be a limitation that I cannot select the nested list.
Visual documentation
Additional Info
The issue is that the
Imagebuilder usesindexinstead ofimagePathsIndex(or in fact it should use the just defined variableimagePathsItem, which currently remains unused).indexis available in the event handlers, but not in the itemBuilder:The project with the issue can be found here: https://app.flutterflow.io/project/swipable-stack-index-issue-r66g9n?tab=uiBuilder&page=HomePage
Environment