wrapScreen static method

Widget wrapScreen({
  1. required Widget child,
  2. bool? showButtons,
  3. AlignmentGeometry? buttonPosition,
  4. Color? captureButtonColor,
  5. Color? shareButtonColor,
  6. ShareMode? overrideShareMode,
})

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,
  );
}