Skip to content

Commit 506f789

Browse files
committed
chore: set theme.surface as editor's background color
1 parent 20f527f commit 506f789

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

frontend/app_flowy/lib/plugins/doc/document_page.dart

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:app_flowy/plugins/doc/presentation/plugins/horizontal_rule_node_
33
import 'package:app_flowy/startup/startup.dart';
44
import 'package:app_flowy/plugins/doc/presentation/banner.dart';
55
import 'package:appflowy_editor/appflowy_editor.dart';
6+
import 'package:flowy_infra/theme.dart';
67
import 'package:flowy_infra_ui/widget/error_page.dart';
78
import 'package:flowy_sdk/protobuf/flowy-folder/view.pb.dart';
89
import 'package:flutter/material.dart';
@@ -73,12 +74,18 @@ class _DocumentPageState extends State<DocumentPage> {
7374
}
7475

7576
Widget _renderDocument(BuildContext context, DocumentState state) {
76-
return Column(
77-
children: [
78-
if (state.isDeleted) _renderBanner(context),
79-
// AppFlowy Editor
80-
_renderAppFlowyEditor(context.read<DocumentBloc>().editorState),
81-
],
77+
final theme = context.watch<AppTheme>();
78+
return Container(
79+
color: theme.surface,
80+
child: Column(
81+
children: [
82+
if (state.isDeleted) _renderBanner(context),
83+
// AppFlowy Editor
84+
_renderAppFlowyEditor(
85+
context.read<DocumentBloc>().editorState,
86+
),
87+
],
88+
),
8289
);
8390
}
8491

0 commit comments

Comments
 (0)