From a3bd9fd0e1c854fee9265969a5b36bb0801538df Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Wed, 3 Aug 2022 10:06:33 +0800 Subject: [PATCH] feat: expand rich text to handle gestures. (cherry picked from commit ce1eca28e1b9a5ef443f1123ac1b33d89efb6788) --- .../flowy_editor/lib/render/rich_text/flowy_rich_text.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart index f302fcaba8..4ffb4528b4 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart @@ -129,7 +129,10 @@ class _FlowyRichTextState extends State with Selectable { } Widget _buildRichText(BuildContext context) { - return _buildSingleRichText(context); + return Align( + alignment: Alignment.centerLeft, + child: _buildSingleRichText(context), + ); } Widget _buildSingleRichText(BuildContext context) {