Fix issue where side bar view is not disabled

This commit is contained in:
hunteraraujo
2023-09-16 22:19:42 -07:00
parent 60ae12dfd5
commit 4463f75756
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ class SkillTreeViewModel extends ChangeNotifier {
} }
// TODO: Update to actual implementation // TODO: Update to actual implementation
Future<void> callPollUpdates(int lastUpdateTime) async { Future<void> requestBenchmarkStatusUpdate(int lastUpdateTime) async {
try { try {
final result = await benchmarkService.pollUpdates(lastUpdateTime); final result = await benchmarkService.pollUpdates(lastUpdateTime);
print("Updates polled: $result"); print("Updates polled: $result");

View File

@@ -11,7 +11,7 @@ class SideBarView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
// TODO: should we pass this in as a dependency? // TODO: should we pass this in as a dependency?
final skillTreeViewModel = final skillTreeViewModel =
Provider.of<SkillTreeViewModel>(context, listen: false); Provider.of<SkillTreeViewModel>(context, listen: true);
return Material( return Material(
child: ValueListenableBuilder( child: ValueListenableBuilder(
valueListenable: selectedViewNotifier, valueListenable: selectedViewNotifier,