You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some use cases require referencing files by ms-appx:/// URIs. By default, this package will bundle Flutter assets the usual way, which results in the following URI:
flutter:
assets:
- assets/image.jpg
final imageUri =Uri.parse("ms-appx:///data/flutter_assets/assets/image.jpg");
This should probably be documented, as I didn't see it anywhere in the README and had to validate it on my own.
❓ Platform
Windows
It would be nice if we could just refer to them by their filenames, like Image.asset() lets us do:
import"package:msix/msix.dart";
final imageUri =Msix.assetUri("assets/image.jpg");
💬 Description
Some use cases require referencing files by
ms-appx:///
URIs. By default, this package will bundle Flutter assets the usual way, which results in the following URI:This should probably be documented, as I didn't see it anywhere in the README and had to validate it on my own.
❓ Platform
Windows
It would be nice if we could just refer to them by their filenames, like
Image.asset()
lets us do:Where
That would help keep code cleaner, reduce the chances of typos, and allow this package to be more flexible in the future.
The text was updated successfully, but these errors were encountered: