Welcome to Sensr, an innovative application developed exclusively for Pycno, designed to bring precision agriculture to the palm of your hand. Leveraging Pycno's cutting-edge sensor technology, Sensr provides real-time data monitoring, comprehensive analytics, and actionable insights for farmers, agronomists, and agricultural professionals. Experience the power of real-time data, interactive graphs, instant notifications for adverse weather conditions, and insightful summaries directly through your smartphone.
To embark on a journey towards data-driven agriculture with Sensr, ensure you have the Flutter SDK set up on your system. Follow the official Flutter setup guide to install Flutter on Mac or Windows PC.
-
Navigate to
android/app/build.gradle
. -
Modify the
applicationId
to your unique package name:defaultConfig { applicationId "your.package.name" // Replace with your package name minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }
-
Open the
Info.plist
file within theios/Runner
directory. -
Update the
CFBundleIdentifier
with your package name:<key>CFBundleIdentifier</key> <string>com.your.packagename</string> <!-- Replace with your package name -->
Effortlessly build and publish your application with these step-by-step guides:
- iOS: Deploying to iOS Devices
- Android: Deploying to Android Devices
Key areas include app signing, release builds, and app store deployment.
- Folder Structure: Organized for efficiency.
- Pages:
lib/screens
- Widgets:
lib/widgets
- Builder Functions:
lib/builders
for complex UI elements.
- Pages:
- Centralized theme management:
lib/theme
. - Customize themes with
CustomColorScheme.dart
. - Apply themes globally with
GlobalTheme.dart
.
- Graph styling in
SensorLineChart.dart
, powered byfl_chart
. - Real-time data and analytics visualization.
Control and manage data with precision:
TimeSeriesController
: Fetch and process time series data.SparklinesController
: Retrieve sparklines for quick data insights.ListOfSensorsController
: Manage sensor data effectively.
Robust data models for scalability:
- Base
Sensor
class withFixSensor
andPulse
subclasses. - Data models:
TimeSeries
andLogSeries
.
Environment configurations and API integration:
env.dart
: Contains essential environment variables like the API base url.
By harnessing the power of Sensr and Pycno's sensors, stakeholders in the agricultural sector can optimize their practices, ensure sustainable farming, and achieve remarkable improvements in crop yield and health. Welcome to the future of agriculture.