From 39cb182e63f1ea05f06702a98e55faa5945ed85c Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Fri, 5 Jul 2024 20:14:42 +0800 Subject: [PATCH] chore: add debug log --- .../application/sidebar/space/space_bloc.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart b/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart index 50a2f80fe2f79..74e6342378930 100644 --- a/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart +++ b/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart @@ -21,6 +21,7 @@ import 'package:appflowy_result/appflowy_result.dart'; import 'package:collection/collection.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra/uuid.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:protobuf/protobuf.dart'; @@ -356,6 +357,17 @@ class SpaceBloc extends Bloc { final publicSpaces = publicViews.where((e) => e.isSpace); final privateSpaces = privateViews.where((e) => e.isSpace); + for (final view in publicViews) { + debugPrint('public view: ${view.name}'); + } + + for (final view in privateViews) { + debugPrint('private view: ${view.name}'); + } + + debugPrint('publicSpaces: ${publicSpaces.length}'); + debugPrint('privateSpaces: ${privateSpaces.length}'); + return ([...publicSpaces, ...privateSpaces], publicViews, privateViews); }