wrapScreen static method
Widget
wrapScreen({
- required Widget child,
- bool? showButton,
- AlignmentGeometry? buttonPosition,
- Color? buttonColor,
Create a widget that wraps the entire app with screenshot capture functionality
Implementation
static Widget wrapScreen({
required Widget child,
bool? showButton,
AlignmentGeometry? buttonPosition,
Color? buttonColor,
ShareMode? overrideShareMode,
}) {
final config = ScreenshotConfig();
return ScreenshotWrapper(
mostrarBotao: showButton ?? config.shouldShowButtons,
posicaoBotao: buttonPosition ?? Alignment.bottomRight,
corBotao: buttonColor ?? Colors.red.withOpacity(0.7),
shareMode: overrideShareMode ?? config.shareMode,
child: child,
);
}