screenshot_kit 1.0.1
screenshot_kit: ^1.0.1 copied to clipboard
Capture widgets, long scroll views and the whole screen, including maps and web views, as PNG or JPEG. A maintained, drop-in successor to screenshot.
1.0.1 - 2026-11-18 #
- Docs: README now leads with tiled tall-widget capture and includes a measured
comparison on Impeller/Vulkan, including the exact 16,384 px single-pass
cutoff and how
pixelRatiomultiplies it. - Docs: the migration section states explicitly that migrating does not add
platform-view capture; that requires the separate
ScreenshotKit.captureScreencall, which is Android and iOS only. - Docs: fixed dartdoc references that could not resolve from this package.
screenshot.dartimportspackage:flutter/widgets.dartrather thanmaterial.dart, narrowing the import surface. No API change.
1.0.0 - 2026-10-13 #
First release of screenshot_kit, an API-compatible alternative to the
screenshot package with tiled capture for tall widgets. Based on
screenshot 3.0.0 by Sachin Ganesh (MIT).
Compatible with screenshot 3.0.0: Screenshot and ScreenshotController keep
their method signatures, so migrating means changing the dependency and the
import.
Added #
ScreenshotController.captureImage,captureWidgetandcaptureScrollable, returning aCaptureResult(bytes, width, height, format).- PNG, JPEG (with
quality, white background by default) and raw RGBA output, withpixelRatio,maxWidth,maxHeightandbackgroundoptions. ScreenshotExceptionwith aScreenshotFailurereason, thrown instead of returningnull.ScreenshotHost, so off-screen captures can use providers that live inside a page.ScreenshotKit.captureScreenandScreenshotKit.isScreenCaptureSupported: native capture of the whole window on Android and iOS, including platform views such as Google Maps, web views and ads.
Fixed #
Issue numbers refer to SachinGanesh/screenshot.
- A fixed 1 second wait before capturing; images are now awaited until they load (#64, #205).
- Provider and other inherited widgets lost in off-screen captures (#199).
- Images missing from off-screen captures (#107, #114).
- Long widgets truncated or blurry; they are now captured in tiles (#191, #204, #207).
- Scroll views could not be captured in full (#79, #112, #175).
- Failures returned
nullwith no reason (#84, #171, #195). - The off-screen widget tree was never disposed (#109).
- PNG only, with no background option (#124).
- Platform views were not captured (#24, #62, #208).
