37 lines
1.2 KiB
Dart
37 lines
1.2 KiB
Dart
class AppConstants {
|
|
// App Info
|
|
static const String appName = 'Fleet Driver';
|
|
static const String appVersion = '1.0.0';
|
|
|
|
// Google Maps
|
|
static const String googleMapsApiKey = 'YOUR_GOOGLE_MAPS_API_KEY_HERE';
|
|
|
|
// Navigation URLs
|
|
static const String googleMapsUrlScheme = 'comgooglemaps://';
|
|
static const String appleMapsUrlScheme = 'maps://';
|
|
|
|
// API Endpoints (Replace with your actual backend URL)
|
|
static const String baseApiUrl = 'https://your-api-url.com/api';
|
|
static const String routesEndpoint = '/routes';
|
|
static const String stopsEndpoint = '/stops';
|
|
static const String updateStatusEndpoint = '/update-status';
|
|
|
|
// Timeouts
|
|
static const int apiTimeout = 30; // seconds
|
|
static const int locationUpdateInterval = 5; // seconds
|
|
|
|
// Permissions
|
|
static const String locationPermissionMessage =
|
|
'This app needs location access to show your current position and navigate to destinations.';
|
|
|
|
// Local Storage Keys
|
|
static const String driverIdKey = 'driver_id';
|
|
static const String driverNameKey = 'driver_name';
|
|
static const String authTokenKey = 'auth_token';
|
|
|
|
// Map Settings
|
|
static const double defaultZoom = 15.0;
|
|
static const double defaultTilt = 0.0;
|
|
static const double defaultBearing = 0.0;
|
|
}
|