wrapScreen static method
Widget
wrapScreen({
- required Widget child,
- bool? showButtons,
- AlignmentGeometry? buttonPosition,
- Color? captureButtonColor,
Create a widget that wraps the entire app with screenshot capture functionality
Implementation
static Widget wrapScreen({
required Widget child,
bool? showButtons,
AlignmentGeometry? buttonPosition,
Color? captureButtonColor,
Color? shareButtonColor,
ShareMode? overrideShareMode,
}) {
final config = ScreenshotConfig();
return DualButtonScreenshotWrapper(
mostrarBotoes: showButtons ?? config.shouldShowButtons,
posicaoBotoes: buttonPosition ?? Alignment.bottomRight,
corCapturarBotao: captureButtonColor ?? Colors.red.withValues(alpha: 0.7),
corEnviarBotao: shareButtonColor ?? Colors.blue.withValues(alpha: 0.7),
shareMode: overrideShareMode ?? config.shareMode,
child: child,
);
}