Skip to content

Use of local assets on Android while loading Models #897

@M4dhav

Description

@M4dhav

On the Android platform, when loading models using
final carModelUri = "asset://assets/sportcar.glb";
the car model is not loaded. Upon compiling an APK of the example app and using the Android Studio APK Analyzer, I discovered that Flutter was bundling the assets under flutter_assets/assets/ instead of the assets/ folder. I then replaced the path in my code as
final carModelUri = "asset://flutter_assets/assets/sportcar.glb";
and the car did indeed load. I believe this either needs to be mentioned in the Example for loading 3D Models or the library should intrinsically handle adding flutter_assets to path when loading assets on Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions