From 692a44fedda10e7d03a04ee14bf764e670a87567 Mon Sep 17 00:00:00 2001 From: HuiChan Seo <78739194+seochan99@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:26:41 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8Feat:=20=ED=99=88=20=EC=9C=84=EC=A0=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/viewModels/home/home_viewmodel.dart | 7 ++++++- lib/views/home/home_head_widget.dart | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/viewModels/home/home_viewmodel.dart b/lib/viewModels/home/home_viewmodel.dart index 186874c..8f71592 100644 --- a/lib/viewModels/home/home_viewmodel.dart +++ b/lib/viewModels/home/home_viewmodel.dart @@ -7,6 +7,12 @@ class HomeViewModel extends GetxController { var circleNumber = 42.obs; var linialPersent = 0.9.obs; + @override + void onInit() { + super.onInit(); + update(); + } + // 발음 점수 업데이트 void updateSpeakingScore(int newScore) { speakingScore.value = newScore; @@ -27,4 +33,3 @@ class HomeViewModel extends GetxController { linialPersent.value = newPersent; } } - diff --git a/lib/views/home/home_head_widget.dart b/lib/views/home/home_head_widget.dart index f4aba93..8660fca 100644 --- a/lib/views/home/home_head_widget.dart +++ b/lib/views/home/home_head_widget.dart @@ -53,6 +53,7 @@ class HomeHeaderWidget extends StatelessWidget { ), ), // Use ViewModel data + Text( isLoggedIn ? '${vm.learningLanguage.value} - ${vm.nickname.value}'