如何写精华回答,获更多曝光?
 发布
 1、再flutter中有一个RepaintBoundary组件,
这个组件包装的视图,可以保存成图片
RepaintBoundary(
                key: _globalKey,
                child: Container(),
              )
  
 RenderRepaintBoundary? boundary =
        _globalKey.currentContext?.findRenderObject() as RenderRepaintBoundary?;
    var image = await boundary!.toImage(pixelRatio: 3.0);
    ByteData? byteData = await image.toByteData(format: ImageByteFormat.png);2.鸿蒙系统中有没有类似的方法,可以把屏幕上的原素,屏幕上的全屏图片,图片上放一个文案, 直接保存到相册,保存到相册的图片就是图片加文案的形式