TDD 작성

This commit is contained in:
2025-08-12 03:28:08 +09:00
parent 6033d59590
commit 107abc963f
156 changed files with 70906 additions and 642 deletions
+5 -4
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:provider/provider.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
@@ -44,8 +45,8 @@ class MyApp extends StatelessWidget {
],
child: Consumer<AuthService>(
builder: (context, authService, _) {
// 앱 시작 시 인증 서비스 초기화
Future.delayed(Duration.zero, () {
// 앱 시작 시 인증 서비스 초기화 (타이머 생성 회피: microtask 사용)
Future.microtask(() {
if (!authService.isInitialized) {
authService.initialize();
}
@@ -254,8 +255,8 @@ class _HomeScreenState extends State<HomeScreen> {
}
}
} else if (clubService.clubs.isNotEmpty) {
// 클럽이 여러 개 있으면 선택 다이얼로그 표시
Future.delayed(Duration.zero, () {
// 클럽이 여러 개 있으면 선택 다이얼로그 표시 (타이머 생성 회피: microtask 사용)
Future.microtask(() {
if (context.mounted) {
_showClubSelectionDialog(context);
}