SPEC modifications
This commit is contained in:
parent
1b7d4e5f78
commit
4598e859f5
6 changed files with 171 additions and 367 deletions
24
lib/config.dart
Normal file
24
lib/config.dart
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
class AppConfig {
|
||||
AppConfig._();
|
||||
|
||||
/// Traccar server URL
|
||||
static const String serverUrl = 'https://c.track.rs';
|
||||
|
||||
/// Location accuracy: 'highest', 'high', 'medium', or 'low'
|
||||
static const String accuracy = 'highest';
|
||||
|
||||
/// Location update interval in seconds
|
||||
static const int intervalSeconds = 60;
|
||||
|
||||
/// Distance filter in meters (0 = disabled)
|
||||
static const int distanceFilter = 0;
|
||||
|
||||
/// Whether to enable stop detection
|
||||
static const bool stopDetection = false;
|
||||
|
||||
/// Whether to buffer locations when offline
|
||||
static const bool buffer = true;
|
||||
|
||||
/// Fastest location update interval in seconds (Android)
|
||||
static const int fastestIntervalSeconds = 30;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue