mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[flutter]: tooltip for add page button
This commit is contained in:
parent
d5360c8c9c
commit
787a48da1d
@ -98,11 +98,14 @@ class MenuAppHeader extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _renderAddButton(BuildContext context) {
|
||||
return AddButton(
|
||||
onSelected: (viewType) {
|
||||
context.read<AppBloc>().add(AppEvent.createView("New view", "", viewType));
|
||||
},
|
||||
).padding(right: MenuAppSizes.headerPadding);
|
||||
return Tooltip(
|
||||
message: "Quickly add a page inside",
|
||||
child: AddButton(
|
||||
onSelected: (viewType) {
|
||||
context.read<AppBloc>().add(AppEvent.createView("New view", "", viewType));
|
||||
},
|
||||
).padding(right: MenuAppSizes.headerPadding),
|
||||
);
|
||||
}
|
||||
|
||||
void _handleAction(BuildContext context, Option<AppDisclosureAction> action) {
|
||||
|
@ -60,7 +60,6 @@ class ViewSectionItem extends StatelessWidget {
|
||||
];
|
||||
|
||||
if (onHover || state.isEditing) {
|
||||
children.add(const Spacer());
|
||||
children.add(
|
||||
ViewDisclosureButton(
|
||||
onTap: () => context.read<ViewBloc>().add(const ViewEvent.setIsEditing(true)),
|
||||
|
Loading…
Reference in New Issue
Block a user