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()
copied to clipboard

2、卸载截屏库

fitSystemScreenshot.release()
copied to clipboard

页面初始化 #

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

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

2、页面退出,释放对象

screenShotDispose?.call();
copied to clipboard

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

fitSystemScreenshot.updateScrollLength(contentLength);
copied to clipboard

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

fitSystemScreenshot.updateScrollPosition(0);
copied to clipboard
4
likes
115
points
81
downloads

Publisher

verified publisheriflutter.toolu.cn

Weekly Downloads

2024.09.23 - 2025.04.07

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fit_system_screenshot