我正在尝试解析url图像,以便将其转换为Uint8字节,并在我的共享提供商之间共享。当尝试将我的http响应合并成字节时,我的类得到了以下错误The method 'consolidateHttpClientResponseBytes' isn't defined。这是我尝试使用的代码……请帮帮我!
Future<Null> shareImage() async{
var request = await HttpClient().getUrl(Uri.parse('network_image_url'));
var response = await request.close();
Uint8List bytes = await consolidateHttpClientResponseBytes(response);
}发布于 2019-08-31 19:01:15
导入以下内容:
import 'dart:typed_data';
import 'package:flutter/foundation.dart';
import 'package:path_provider/path_provider.dart';你应该表现得很好
https://stackoverflow.com/questions/57649178
复制相似问题