mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: button width in trash page
This commit is contained in:
@ -140,23 +140,23 @@ class _TrashPageState extends State<TrashPage> {
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: 36,
|
height: 36,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
FlowyText.semibold(LocaleKeys.trash_text.tr()),
|
FlowyText.semibold(LocaleKeys.trash_text.tr()),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
SizedBox.fromSize(
|
IntrinsicWidth(
|
||||||
size: const Size(102, 30),
|
|
||||||
child: FlowyButton(
|
child: FlowyButton(
|
||||||
text: FlowyText.medium(LocaleKeys.trash_restoreAll.tr(),
|
text: FlowyText.medium(LocaleKeys.trash_restoreAll.tr(),
|
||||||
fontSize: 12),
|
fontSize: 12),
|
||||||
leftIcon: svgWidget('editor/restore', color: theme.iconColor),
|
leftIcon: svgWidget('editor/restore', color: theme.iconColor),
|
||||||
hoverColor: theme.hover,
|
hoverColor: theme.hover,
|
||||||
onTap: () =>
|
onTap: () => context.read<TrashBloc>().add(
|
||||||
context.read<TrashBloc>().add(const TrashEvent.restoreAll()),
|
const TrashEvent.restoreAll(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const HSpace(6),
|
const HSpace(6),
|
||||||
SizedBox.fromSize(
|
IntrinsicWidth(
|
||||||
size: const Size(102, 30),
|
|
||||||
child: FlowyButton(
|
child: FlowyButton(
|
||||||
text: FlowyText.medium(LocaleKeys.trash_deleteAll.tr(),
|
text: FlowyText.medium(LocaleKeys.trash_deleteAll.tr(),
|
||||||
fontSize: 12),
|
fontSize: 12),
|
||||||
|
Reference in New Issue
Block a user