Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation committed Jul 25, 2024
1 parent 78f459e commit 8d61a56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/screens/SplashScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:go_router/go_router.dart';

class SplashScreen extends ConsumerStatefulWidget {
static const String routeName = '/SplashScreen';

const SplashScreen({super.key});

@override
Expand Down Expand Up @@ -40,7 +41,7 @@ class _SplashScreenState extends ConsumerState<SplashScreen> {
await Future.delayed(const Duration(seconds: 3));
// 초기화 완료 후 메인 화면으로 전환
if (mounted) {
GoRouter.of(context).go(TopScreen.name);
context.goNamed(TopScreen.name);
}
} catch (e) {
// 초기화 중 발생한 오류 처리
Expand Down

0 comments on commit 8d61a56

Please sign in to comment.