fit_system_screenshot 1.0.9 copy "fit_system_screenshot: ^1.0.9" to clipboard
fit_system_screenshot: ^1.0.9 copied to clipboard

PlatformAndroid

让Flutter应用适配安卓系统的长截图

fit_system_screenshot #

让Flutter应用适配安卓系统的长截图

安装与卸载 #

1、初始化截屏库

fitSystemScreenshot.init()

2、卸载截屏库

fitSystemScreenshot.release()

页面初始化 #

1、同步Flutter层和原生层的滚动位置

screenShotDispose = fitSystemScreenshot.attachToPage(scrollAreaKey, scrollController, (offset) {
  scrollController.jumpTo(offset);
});

2、页面退出,释放对象

screenShotDispose?.call();

3、更新滚动内容长度(可选)

fitSystemScreenshot.updateScrollLength(contentLength);

4、更新截屏开始位置(可选)

fitSystemScreenshot.updateScrollPosition(0);
1
likes
95
pub points
0%
popularity

Publisher

verified publisheriflutter.toolu.cn

让Flutter应用适配安卓系统的长截图

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fit_system_screenshot