camera_grid 0.0.2 copy "camera_grid: ^0.0.2" to clipboard
camera_grid: ^0.0.2 copied to clipboard

A Flutter widget that provides a dynamic camera grid overlay with gyroscope-based rotation and orientation-adaptive alignment box.

Changelog #

[0.0.2] - 2024-10-18 #

Changed #

  • Refactored CameraGrid to use a separate _ActiveGyroCameraGrid widget, improving performance when grid is disabled and simplifying the toggle mechanism.
  • Updated to use Dart 3's switch expression for clearer, more maintainable code.

Fixed #

  • Eliminated unnecessary resource initialization when grid is disabled.

[0.0.1] - 2024-10-18 #

🎉 Initial release of Gyro Camera Grid! 🎉

🚀 Features #

  • Introduced the CameraGrid widget
    • Responsive grid overlay that follows device orientation
    • Smooth transitions between portrait and landscape modes
    • Customizable grid color, accent color, and line width
    • Snapping behavior with adjustable threshold

🧰 Core Components #

  • CameraGrid: Main widget for wrapping camera previews
  • CameraGridPainter: Custom painter for rendering the grid and alignment box
  • GyroMath: Utility class for handling orientation calculations

🎨 Customization Options #

  • Grid color
  • Accent color (for snapped alignment box)
  • Grid line width
  • Moving border radius
  • Morph animation duration and curve
  • Snap threshold
1
likes
0
points
31
downloads

Publisher

verified publisherbanerjeearnab.com

Weekly Downloads

A Flutter widget that provides a dynamic camera grid overlay with gyroscope-based rotation and orientation-adaptive alignment box.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, sensors_plus, vector_math

More

Packages that depend on camera_grid