screenshots constant
Screenshots
Current app screenshots
Packages can showcase their widgets or other visual elements using screenshots displayed on their pub.flutter-io.cn page. To specify screenshots for the package to display, use the screenshots field.
A package can list up to 10 screenshots under the screenshots field. Don’t include logos or other branding imagery in this section. Each screenshot includes one description and one path. The description explains what the screenshot depicts in no more than 160 characters. For example:
screenshots:
- description: 'This screenshot shows the transformation of a number of bytes
to a human-readable expression.'
path: path/to/image/in/package/500x500.webp
- description: 'This screenshot shows a stack trace returning a human-readable
representation.'
path: path/to/image/in/package.png
Pub.dev limits screenshots to the following specifications:
- File size: max 4 MB per image.
- File types: png, jpg, gif, or webp.
- Static and animated images are both allowed.
Keep screenshot files small. Each download of the package includes all screenshot files.
Pub.dev generates the package’s thumbnail image from the first screenshot. If this screenshot uses animation, pub.flutter-io.cn uses its first frame.
Implementation
static const List<Object> screenshots = <Object>[];