BLoC/Cubit state management, ADHD-friendly theme (calming teal, no red), GetIt DI, GoRouter navigation. Screens: task dashboard, focus mode, task create/detail, streaks, time perception, settings, onboarding, auth. Custom widgets: TaskCard, RewardPopup, StreakRing, GentleNudgeCard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
356 B
Dart
17 lines
356 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get_it/get_it.dart';
|
|
import 'app.dart';
|
|
import 'core/network/api_client.dart';
|
|
|
|
final getIt = GetIt.instance;
|
|
|
|
void main() {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
_setupDI();
|
|
runApp(const FocusFlowApp());
|
|
}
|
|
|
|
void _setupDI() {
|
|
getIt.registerLazySingleton<ApiClient>(() => ApiClient());
|
|
}
|