A Flutter application for fetching, displaying, and visualizing data from multiple device sensors in real-time.
- Fetches data from multiple sensors:
- Accelerometer
- Gyroscope
- Magnetometer
- User Accelerometer
- Linear Accelerometer
- Gravity
- Real-time graphing using the
fl_chartpackage. - Scrollable dashboard with individual sensor charts.
- Configurable chart data points (currently set to 50 most recent readings).
This app uses the following key packages:
sensors_plus: For accessing device sensors.fl_chart: For creating interactive charts.
- Uses stream listeners to continuously collect sensor data.
- Maintains a rolling buffer of sensor events (
MAX_CHART_POINTS). - Automatically removes the oldest data points to prevent memory overflow.
- Each sensor has a dedicated chart.
- Charts display X-axis values by default (can be modified to show Y or Z-axis values).
- Color-coded for easy differentiation.
- Supports dynamic updates for real-time data representation.
- Ensure you have Flutter installed on your system.
- Add the dependencies listed above in your
pubspec.yamlfile. - Run the application on a device with the required sensors.
- Interact with the dashboard to view real-time sensor data.
Enjoy visualizing sensor data effortlessly!