Skip to content

Project Dependencies -> Can't build APK if imported Lib has a Streaming API call definition. #3913

@Unity2Blender

Description

@Unity2Blender

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

I have imported my Project Library which contains an API Call definition of Gemini API using streaming.

Now when I import this Library into the project in subject, It throws an error while building apk because Flutterflow isn't generating api_streaming.dart in the imported library package of this project. This further leads to a compile time error as one of my screen's widget & model dart files import it automatically because Flutterflow has imported it.

Expected Behavior

Exported package's API_streaming.dart should be also imported with the Project code as it throws a compile time error because an import statement depends upon it in investigation_result's widget and model file.

Steps to Reproduce

Try to Build/Generate APK from the Developer Menu.

Reproducible from Blank

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

Bug Report Code (Required)

IT4CkvLl/ZNgobhc0M71bcdvmikUJlB6RYINldVuSUsYJ5PMC+wIZ/f7XFRuTde0S1FiPGGJ+XoK08nemvHxLu1cNU2uQYBawbhyWwHJXkK6RZSSC7rpZW5/Df1mCWqC1p2CniYlFMpiLVkt3HGMAO6WfDHsQ72xIXowReaIC5KK2SrDX1iXc2URm05KZDPz

Visual documentation

Here you can see that api_streaming.dart is being imported from my Library along with api_calls.dart.

image

Here you see that bug that api_streaming.dart is not added to the Project's code while api_calls.dart is present and compiles just fine.

image

Here finally due to the absense of api_streaming.dart, It leads to this error when I try to Build APK.

image

Environment

- FlutterFlow version: 5.0.0
- Platform: Windows 11
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions