mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
Fix issue where side bar view is not disabled
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user