We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 545c292 commit 3ecc2a4Copy full SHA for 3ecc2a4
packages/flutter/lib/src/services/asset_bundle.dart
@@ -223,7 +223,7 @@ abstract class CachingAssetBundle extends AssetBundle {
223
class PlatformAssetBundle extends CachingAssetBundle {
224
@override
225
Future<ByteData> load(String key) async {
226
- final Uint8List encoded = UTF8.encoder.convert(key);
+ final Uint8List encoded = UTF8.encoder.convert(new Uri(path: key).path);
227
final ByteData asset =
228
await BinaryMessages.send('flutter/assets', encoded.buffer.asByteData());
229
if (asset == null)
0 commit comments