File _sdFilePath = File("/sd/.........xxx....");
ByteData bytes = await rootBundle.load("assets/xxx.mp3");
_sdFilePath.writeAsBytes(bytes.buffer.asUint8List(bytes.offsetInBytes, bytes.lengthInBytes));
File _sdFilePath = File("/sd/.........xxx....");
ByteData bytes = await rootBundle.load("assets/xxx.mp3");
_sdFilePath.writeAsBytes(bytes.buffer.asUint8List(bytes.offsetInBytes, bytes.lengthInBytes));
本文标题:flutter 将assets文件保存到sd卡
本文链接:https://www.haomeiwen.com/subject/vifxvktx.html
网友评论