simple_appstore_screenshot

Last updated:

0 purchases

simple_appstore_screenshot Image
simple_appstore_screenshot Images
Add to Cart

Description:

simple appstore screenshot

This package help you to create appstore screenshot directly within the app.
Features #
This package can create screenshot easily in app. The size of the screenshot can be uploaded to Google Play Store and Apple AppStore directly.
It is recommended to use this package in tablet.


Getting started #
wrap the page that you want to create screenshot inside SimpleScreenShot
SimpleScreenShot(
child: YourPage()
)
copied to clipboard
SimpleScreenShot must be under MaterialApp or CupertinoApp
take screenshot
specify how you want to treat the captured image in Uint8List.
For example, if you want to share your screenshot directly, you can add the share_plus package and then
SimpleScreenShot(
callback: (Uint8List? image) async {
await Share.shareXFiles([XFile.fromData(image!,name: "image.png", mimeType: "png")]);
},
child: YourPage()
)
copied to clipboard
Usage #
add description
SimpleScreenShot(
description: (context)=>Text("Some Description",style:TextStyle()),
child: YourPage()
)
copied to clipboard
set Background image
SimpleScreenShot(
image: const DecorationImage(
image: AssetImage("assets/background.png"),
fit: BoxFit.cover,
),
child: YourPage()
)
copied to clipboard
set color background
SimpleScreenShot(
color: Colors.red,
child: YourPage()
)
copied to clipboard
set gradient background
SimpleScreenShot(
gradient: const LinearGradient(colors: [Colors.red, Colors.blue]),
child: YourPage()
)
copied to clipboard
You can only set either color background or gradient background
set active
This is package is only active in debug mode by default.
If you want to enable it in release mode, set the active to be true
SimpleScreenShot(
active:true,
child: YourPage()
)
copied to clipboard
Precaution
This package have used context to determine the size. Therefore, please ensure the size of the children you passed into SimpleScreenShot did not use context above the SimpleScreenShot
For example
Widget build(BuildContext context) {
return SimpleScreenShot(
child: Column(
children:[
Text("Hi"),
SomeWidget(context: context)
]
)
)
}
copied to clipboard
The size of the SomeWidget will be depend on context above the SimpleScreenShot and lead to unexpected behaviour.
To resolve this issue. Wrap the Column inside a Builder so that the context will be under SimpleScreenShot

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.