scanning_effect 1.0.3 copy "scanning_effect: ^1.0.3" to clipboard
scanning_effect: ^1.0.3 copied to clipboard

Scanning effect for wrapping around a camera view

Scanning Effect #

License: MIT

Scanning Effect to wrap around the camera

Alt Text

Demo Code #

Wrap the ScanningEffect widget around your widget

@override
Widget build(BuildContext context) {
  return ScanningEffect(
    scanningColor: Colors.red,
    borderLineColor: Colors.green,
    delay: Duration(seconds: 1),
    duration: Duration(seconds: 2),
    child: Container(
      child: SizedBox(),
    ),
  );
}

You can set the custom config base on these param:

  • scanningColor: The color of the scanning animation
  • borderLineColor: The color of the border line
  • scanningHeightOffset: The percent of scanning animation with the view height
  • delay: The delay between each animation
  • duration: The length of time this animation should last.
  • scanningLinePadding: The padding of the scanning animation
29
likes
0
pub points
87%
popularity

Publisher

unverified uploader

Scanning effect for wrapping around a camera view

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, permission_handler

More

Packages that depend on scanning_effect