From 513423a9be543a86f5deccd7c44ae38ba9e01b5c Mon Sep 17 00:00:00 2001 From: appflowy Date: Sat, 29 Jan 2022 22:47:09 +0800 Subject: [PATCH] fix undo redo issue --- .../presentation/stack_page/doc/doc_stack_page.dart | 10 ++++------ .../stack_page/doc/widget/toolbar/history_button.dart | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart b/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart index 3c4e56a904..5db2e12e4d 100644 --- a/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart +++ b/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart @@ -179,15 +179,13 @@ class DocumentShareButton extends StatelessWidget { child: Selector( selector: (ctx, notifier) => notifier.language, builder: (ctx, _, child) => ConstrainedBox( - constraints: BoxConstraints( - maxHeight: 30, - minWidth: buttonWidth, - maxWidth: 100, + constraints: BoxConstraints.expand( + height: 30, + // minWidth: buttonWidth, + width: 100, ), child: RoundedTextButton( title: LocaleKeys.shareAction_buttonText.tr(), - // height: 30, - // width: buttonWidth, fontSize: 12, borderRadius: Corners.s6Border, color: Colors.lightBlue, diff --git a/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/history_button.dart b/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/history_button.dart index 72a1ffb55e..fbe85f40dd 100644 --- a/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/history_button.dart +++ b/frontend/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/history_button.dart @@ -26,7 +26,7 @@ class FlowyHistoryButton extends StatelessWidget { icon: icon, iconSize: iconSize, controller: controller, - undo: true, + undo: undo, ), ); }