Files
habo/lib/constants.dart
dazhuang aa69f2a91e feat: initial commit - Habo habit tracking app
- Complete MVP with Repository Pattern, SQLite storage
- Provider + ChangeNotifier state management
- Navigation 2.0 with deep link support
- Habit CRUD with twoDayRule, notifications, categories
- Backup/Restore via JSON
- Statistics with streak tracking
- Material You theme support
- Biometric lock support
- Desktop widget support
- 27 languages i18n structure
- Comprehensive test suite (87/89 passing)
2026-04-13 15:02:30 +00:00

38 lines
1.6 KiB
Dart

import 'package:flutter/material.dart';
// ─── Enums ───────────────────────────────────────────────────────────────────
enum HabitType { boolean, numeric }
enum DayType { clear, check, fail, skip, progress }
enum Themes { device, light, dark, oled, materialYou }
// ─── Color Constants ─────────────────────────────────────────────────────────
class HaboColors {
static const primary = Color(0xFF09BF30);
static const red = Color(0xFFF44336);
static const skip = Color(0xFFFBC02D);
static const orange = Color(0xFFFF9800);
static const progress = Color(0xFF2196F3);
static const progressBg = Color(0xFFE3F2FD);
static const lightBg = Color(0xFFFAFAFA);
static const darkBg = Color(0xFF000000);
static const cardLight = Colors.white;
static const cardDark = Color(0xFF1E1E1E);
}
// ─── Route Constants ─────────────────────────────────────────────────────────
class Routes {
static const splash = '/';
static const habits = '/habits';
static const statistics = '/statistics';
static const settings = '/settings';
static const onboarding = '/onboarding';
static const createHabit = '/create';
static const editHabit = '/edit';
static const whatsNew = '/whatsnew';
}