defaultBarcodeOverlayBuilder function
The default overlay builder that is used to draw a rectangle on the barcode
Implementation
Widget defaultBarcodeOverlayBuilder(
BuildContext context,
DetectedBarcode barcode,
) {
return Container(
height: 1,
width: 1,
decoration: BoxDecoration(
color: Colors.yellowAccent.withAlpha(100),
borderRadius: BorderRadius.circular(0.05),
),
);
}