-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Can we access your project?
- 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
When you have a custom function that returns a data type struct from another library, you cannot build either in test or local run. You get the below error: (note, my library project id == 'animations-o5gwyw')
Failed to build iOS app
Error (Xcode): lib/flutter_flow/custom_functions.dart:228:14: Error:
'animations_o5gvwy_data_schema.PromptTemplateStruct' can't be used as a type because
'animations_o5gvwy_data_schema' isn't defined.
Could not build the application for the simulator.
Error launching application on iPhone 16
All other custom functions work fine, it is only when returning a struct which depends on a library's imported data struct.
For some debugging, the creation of the function itself did not require compiling the code as it normally does; there was a strange behaviour where the green tick is visible and defaulted to correct, so I am not sure if the code is not compiling and this is why?

Expected Behavior
Code should compile when saving the function.
When using the function in local run it should succeed in the build
Steps to Reproduce
- Create a function which is return a data type for the child project
- Save
- Try and use the function
- Attempt to build in local or test mode
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT48lPHqx89NobgF+KrqdflvoCUvKUM7U78V1uxTb0g8J6rPPJkAZffBblRuTde+TVdqOVmJrGc00qHKvtrxGsE7FxCqaYNe+pZUVD3jfFu6RpfQEquObXdBHeVRGkyu17WwmA9SFM9ZdCVmwUOueu+UVh/UGZDyPjBEAvijIrrJgWirGR3rUBZrzmNecCfn
Visual documentation

Environment
- FlutterFlow version: 6.1.32 (released August 5, 2025)
- Platform: We & MacOS Desktop
- Browser name and version: Chrome Version 138.0.7204.184 (Official Build) (arm64)
- Operating system and version affected: macOD Sequoia 15.5 (24F74)
Additional Information
No response