autoshot 1.4.0
autoshot: ^1.4.0 copied to clipboard
Automate App Store and Play Store screenshot generation across multiple devices, locales, and screens with web download and mobile file export.
Changelog #
1.4.0 #
- Added
appNametoAutoshotConfigfor customising exported filenames. - Updated ZIP archive naming convention: now named
{appName}_autoshot_{timestamp}.zip(e.g.my_app_autoshot_2026-02-18_14-30-00.zip). devicesinAutoshotConfigis now optional.- Added default devices: when no devices are specified, it defaults to a big phone ('phone') and a small tablet ('tablet') via
Devices.android.
1.3.3 #
- Optimized screenshot engine performance: reordered capture loop from
device → locale → screentodevice → screen → locale. - Significantly reduced navigation overhead: route-based screens are now navigated to only once per device, with all locales captured on the same page.
1.3.2 #
- Fixed
_wrapScreendark-mode handling: replacedDevicePreview.isDarkMode()(non-existent API) withThemeMode.system, which correctly reads theplatformBrightnessthatDevicePreview.appBuilderinjects. - Simplified example: replaced the complex grid/chart UI with clean, minimal screens (Home: greeting card + 4 memo tiles; Detail: centred icon + headline + CTA; Stats: 3 stat cards).
- Migrated example to native Flutter localisation (ARB files) — removed the intermediate
_Shelper class entirely. - Reduced ARB keys from 40+ to 17, covering all 5 locales (English, Arabic, French, Japanese, German).
1.3.1 #
- Fixed widget-based screen captures (
ScreenEntry.widget) not respecting DevicePreview's dark-mode toggle — addedthemeMode: DevicePreview.isDarkMode(context) ? ThemeMode.dark : ThemeMode.lightto_wrapScreen. - Updated example: 5 locales (English, Arabic, French, Japanese, German), 3 screens (Home, Detail, Stats), proper
localizationsDelegates+supportedLocales, andthemeModewired toDevicePreview.isDarkModeso the locale/dark-mode toggles in DevicePreview are reflected live in the app.
1.3.0 #
- Added
AutoshotLocaleChangedCallbacktypedef for hooking into locale switches. - Added
onLocaleChangedcallback toAutoshotConfigto synchronise external localisation systems (e.g.easy_localization) that are not driven by DevicePreview's locale state. - Fixed locale switching format: use
locale.toString()(e.g.en_US) instead oftoLanguageTag()(e.g.en-US) so DevicePreview parses the locale correctly.
1.2.0 #
- Saved captures to a real file location on non-web platforms instead of throwing unsupported download errors.
- On Android phones, screenshots are exported to the Downloads folder when available.
- Fixed locale switching during capture by using a DevicePreview-compatible locale tag format.
- Moved the Autoshot section to the top of DevicePreview tools when using the
Autoshotwrapper. - Updated example locales/content so locale-based screenshot differences are visible.
1.1.2 #
- Updated SDK constraints for better compatibility.
1.1.1 #
- Updated SDK constraints for better compatibility.
1.1.0 #
- Fixed
DevicePreviewcompatibility issues withbackgroundColorandpadding. - Updated homepage URL.
- Optimized package description for pub.dev.
- Improved dependency constraints.
1.0.0 #
- Initial release of autoshot.
- Wraps
device_previewas a dependency — single import, single dependency. - Automated screenshot generation across devices × locales × screens.
- ZIP download for Flutter Web.
- Progress UI in the device_preview toolbar.