mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Url encode asset lookup key (#15171)
This commit is contained in:
parent
545c292cb8
commit
3ecc2a4ed2
@ -223,7 +223,7 @@ abstract class CachingAssetBundle extends AssetBundle {
|
||||
class PlatformAssetBundle extends CachingAssetBundle {
|
||||
@override
|
||||
Future<ByteData> load(String key) async {
|
||||
final Uint8List encoded = UTF8.encoder.convert(key);
|
||||
final Uint8List encoded = UTF8.encoder.convert(new Uri(path: key).path);
|
||||
final ByteData asset =
|
||||
await BinaryMessages.send('flutter/assets', encoded.buffer.asByteData());
|
||||
if (asset == null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user