• 安装最新版 screenshot

    • 使用 ```dart /// 引入 import ‘package:screenshot/screenshot.dart’;

    /// 定义控制器 ScreenshotController _ctrl = ScreenshotController();

    /// 使用 Screenshot( controller: ctrlMatch[‘0’], child: xxx, // 需要转化图片的组件 )

    // 转化 _ctrl.capture(pixelRatio: 3.0).then((File image) async{ var result = WeChatImage.file(image, suffix: ‘jpg’); // do something }).catchError((onError) { print(onError); }); ```