How to take screenshot of widget beyond the screen in flutter?

后端 未结 3 1232
無奈伤痛
無奈伤痛 2020-12-18 06:17

I am using RepaintBoundary to take the screenshot of the current widget which is a listView. But it only captures the content which is visi

3条回答
  •  甜味超标
    2020-12-18 06:43

    There is a simple way You need wrap SingleChildScrollView Widget to RepaintBoundary. just wrap your Scrollable widget (or his father) with SingleChildScrollView

    SingleChildScrollView(
      child: RepaintBoundary(
         key: _globalKey
    
       )
    )
    

提交回复
热议问题