cameraPreviewBuilder property
Widget Function(BuildContext context, Widget texture, MobileScannerArguments arguments)
cameraPreviewBuilder
final
⚡️ Added function from the original package
A function that builds and customizes the camera preview display within the scanner. The cameraPreviewBuilder takes the following parameters:
- context: The build context for the widget tree.
texture
: The widget that displays the camera preview (typically a Texture or HtmlElementView).arguments
: The MobileScannerArguments that contain metadata about the scanner.
This builder allows developers to modify the appearance and layout of the camera preview as per the application's requirements.
Implementation
final Widget Function(
BuildContext context,
Widget texture,
MobileScannerArguments arguments,
) cameraPreviewBuilder;