| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- class AppConstants {
- // 颜色常量
- static const Color primaryColor = Color(0xFF2196F3);
- static const Color secondaryColor = Color(0xFF03A9F4);
- static const Color accentColor = Color(0xFF00BCD4);
- static const Color backgroundColor = Color(0xFFF5F5F5);
- static const Color surfaceColor = Color(0xFFFFFFFF);
- static const Color errorColor = Color(0xFFf44336);
- static const Color successColor = Color(0xFF4CAF50);
- static const Color warningColor = Color(0xFFFF9800);
-
- // 导航标签
- static const List<String> bottomNavTabs = ['供水', '巡检', '营收'];
-
- // API 端点
- static const String baseUrl = 'http://your-api-domain.com/api';
- static const String loginEndpoint = '/auth/login';
- static const String logoutEndpoint = '/auth/logout';
- static const String waterDataEndpoint = '/water/data';
- static const String inspectionTasksEndpoint = '/inspection/tasks';
- static const String revenueBillsEndpoint = '/revenue/bills';
-
- // 存储键
- static const String tokenKey = 'auth_token';
- static const String userInfoKey = 'user_info';
- static const String lastSyncKey = 'last_sync_time';
-
- // 分页设置
- static const int defaultPageSize = 20;
- static const int maxPageSize = 100;
-
- // 地图设置
- static const double defaultZoom = 15.0;
- static const String mapStyle = '''
- [
- {
- "featureType": "water",
- "elementType": "geometry",
- "stylers": {
- "color": "#e9e9e9"
- }
- }
- ]
- ''';
- }
|