智慧水务管理系统 - 精河县供水工程综合管理平台

constants.dart 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. class AppConstants {
  2. // 颜色常量
  3. static const Color primaryColor = Color(0xFF2196F3);
  4. static const Color secondaryColor = Color(0xFF03A9F4);
  5. static const Color accentColor = Color(0xFF00BCD4);
  6. static const Color backgroundColor = Color(0xFFF5F5F5);
  7. static const Color surfaceColor = Color(0xFFFFFFFF);
  8. static const Color errorColor = Color(0xFFf44336);
  9. static const Color successColor = Color(0xFF4CAF50);
  10. static const Color warningColor = Color(0xFFFF9800);
  11. // 导航标签
  12. static const List<String> bottomNavTabs = ['供水', '巡检', '营收'];
  13. // API 端点
  14. static const String baseUrl = 'http://your-api-domain.com/api';
  15. static const String loginEndpoint = '/auth/login';
  16. static const String logoutEndpoint = '/auth/logout';
  17. static const String waterDataEndpoint = '/water/data';
  18. static const String inspectionTasksEndpoint = '/inspection/tasks';
  19. static const String revenueBillsEndpoint = '/revenue/bills';
  20. // 存储键
  21. static const String tokenKey = 'auth_token';
  22. static const String userInfoKey = 'user_info';
  23. static const String lastSyncKey = 'last_sync_time';
  24. // 分页设置
  25. static const int defaultPageSize = 20;
  26. static const int maxPageSize = 100;
  27. // 地图设置
  28. static const double defaultZoom = 15.0;
  29. static const String mapStyle = '''
  30. [
  31. {
  32. "featureType": "water",
  33. "elementType": "geometry",
  34. "stylers": {
  35. "color": "#e9e9e9"
  36. }
  37. }
  38. ]
  39. ''';
  40. }