mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #1451 from richardshiue/flowy-editor-background
fix: use surface color of colorscheme as editor's background color
This commit is contained in:
commit
e076c2be90
@ -73,17 +73,14 @@ class _DocumentPageState extends State<DocumentPage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _renderDocument(BuildContext context, DocumentState state) {
|
Widget _renderDocument(BuildContext context, DocumentState state) {
|
||||||
return Container(
|
return Column(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
children: [
|
||||||
child: Column(
|
if (state.isDeleted) _renderBanner(context),
|
||||||
children: [
|
// AppFlowy Editor
|
||||||
if (state.isDeleted) _renderBanner(context),
|
_renderAppFlowyEditor(
|
||||||
// AppFlowy Editor
|
context.read<DocumentBloc>().editorState,
|
||||||
_renderAppFlowyEditor(
|
),
|
||||||
context.read<DocumentBloc>().editorState,
|
],
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ EditorStyle customEditorTheme(BuildContext context) {
|
|||||||
bold: editorStyle.bold?.copyWith(
|
bold: editorStyle.bold?.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
),
|
),
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
);
|
);
|
||||||
return editorStyle;
|
return editorStyle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user