Skip to content

Commit 72913ad

Browse files
committed
fix: profile change of TW2 made reactive
1 parent b899a26 commit 72913ad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/app/modules/home/controllers/home_controller.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ class HomeController extends GetxController {
101101
widgetController.update();
102102
}
103103
});
104+
ever(splashController.currentProfile, (_) {
105+
if (splashController.getMode(splashController.currentProfile.value) !=
106+
"TW3") {
107+
refreshTaskWithNewProfile();
108+
}
109+
if (Platform.isAndroid) {
110+
WidgetController widgetController = Get.put(WidgetController());
111+
widgetController.fetchAllData();
112+
widgetController.updateWidget();
113+
}
114+
});
104115
}
105116

106117
Future<List<String>> getUniqueProjects() async {

0 commit comments

Comments
 (0)