mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
fix undo redo issue
This commit is contained in:
parent
5a3099e323
commit
513423a9be
2 changed files with 5 additions and 7 deletions
|
@ -179,15 +179,13 @@ class DocumentShareButton extends StatelessWidget {
|
||||||
child: Selector<AppearanceSettingModel, AppLanguage>(
|
child: Selector<AppearanceSettingModel, AppLanguage>(
|
||||||
selector: (ctx, notifier) => notifier.language,
|
selector: (ctx, notifier) => notifier.language,
|
||||||
builder: (ctx, _, child) => ConstrainedBox(
|
builder: (ctx, _, child) => ConstrainedBox(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints.expand(
|
||||||
maxHeight: 30,
|
height: 30,
|
||||||
minWidth: buttonWidth,
|
// minWidth: buttonWidth,
|
||||||
maxWidth: 100,
|
width: 100,
|
||||||
),
|
),
|
||||||
child: RoundedTextButton(
|
child: RoundedTextButton(
|
||||||
title: LocaleKeys.shareAction_buttonText.tr(),
|
title: LocaleKeys.shareAction_buttonText.tr(),
|
||||||
// height: 30,
|
|
||||||
// width: buttonWidth,
|
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
borderRadius: Corners.s6Border,
|
borderRadius: Corners.s6Border,
|
||||||
color: Colors.lightBlue,
|
color: Colors.lightBlue,
|
||||||
|
|
|
@ -26,7 +26,7 @@ class FlowyHistoryButton extends StatelessWidget {
|
||||||
icon: icon,
|
icon: icon,
|
||||||
iconSize: iconSize,
|
iconSize: iconSize,
|
||||||
controller: controller,
|
controller: controller,
|
||||||
undo: true,
|
undo: undo,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue