Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Nov 22, 2025

Introduced support for device sensors including accelerometer, user accelerometer, gyroscope, magnetometer, and barometer. Added corresponding Dart services, Python control classes, event types, and documentation. Updated mkdocs navigation and provided example usage for each sensor.

Summary by Sourcery

Add cross-platform sensor streaming support and corresponding Python APIs for accessing device motion and environmental data from Flet apps.

New Features:

  • Introduce Flutter sensor services for accelerometer, user accelerometer, gyroscope, magnetometer, and barometer controls with configurable sampling intervals and error handling.
  • Expose new Python service controls and strongly typed events for reading sensor data and reporting sensor errors in Flet applications.
  • Provide example applications demonstrating basic usage of each sensor service in Python.

Enhancements:

  • Wire new sensor service controls into the Flet core extension so they can be instantiated from control definitions.
  • Expand the Python package exports to include new sensor controls and their event types.

Documentation:

  • Add user-facing documentation pages for new sensor controls and their event types, and integrate them into the mkdocs navigation.

Introduced support for device sensors including accelerometer, user accelerometer, gyroscope, magnetometer, and barometer. Added corresponding Dart services, Python control classes, event types, and documentation. Updated mkdocs navigation and provided example usage for each sensor.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 22, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d393a6d
Status: ✅  Deploy successful!
Preview URL: https://37730cad.flet-docs.pages.dev
Branch Preview URL: https://sensors.flet-docs.pages.dev

View logs

Added import for numbers utility in sensors.dart and improved code formatting for error handling and debug print statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants