Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: set theme.surface as editor's background color
Lucas.Xu506f789318ea
diff --git a/frontend/app_flowy/lib/plugins/doc/document_page.dart b/frontend/app_flowy/lib/plugins/doc/document_page.dartindex 76ac3f2523..214ad6ac6e 100644--- a/frontend/app_flowy/lib/plugins/doc/document_page.dart+++ b/frontend/app_flowy/lib/plugins/doc/document_page.dart@@ -3,6 +3,7 @@ import 'package:app_flowy/plugins/doc/presentation/plugins/horizontal_rule_node_import 'package:app_flowy/startup/startup.dart';import 'package:app_flowy/plugins/doc/presentation/banner.dart';import 'package:appflowy_editor/appflowy_editor.dart';+import 'package:flowy_infra/theme.dart';import 'package:flowy_infra_ui/widget/error_page.dart';import 'package:flowy_sdk/protobuf/flowy-folder/view.pb.dart';import 'package:flutter/material.dart';@@ -73,12 +74,18 @@ class _DocumentPageState extends State<DocumentPage> {}Widget _renderDocument(BuildContext context, DocumentState state) {- return Column(- children: [- if (state.isDeleted) _renderBanner(context),- // AppFlowy Editor- _renderAppFlowyEditor(context.read<DocumentBloc>().editorState),- ],+ final theme = context.watch<AppTheme>();+ return Container(+ color: theme.surface,+ child: Column(+ children: [+ if (state.isDeleted) _renderBanner(context),+ // AppFlowy Editor+ _renderAppFlowyEditor(+ context.read<DocumentBloc>().editorState,+ ),+ ],+ ),);}