mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-10 18:01: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) {
|
Widget _renderAddButton(BuildContext context) {
|
||||||
return AddButton(
|
return Tooltip(
|
||||||
onSelected: (viewType) {
|
message: "Quickly add a page inside",
|
||||||
context.read<AppBloc>().add(AppEvent.createView("New view", "", viewType));
|
child: AddButton(
|
||||||
},
|
onSelected: (viewType) {
|
||||||
).padding(right: MenuAppSizes.headerPadding);
|
context.read<AppBloc>().add(AppEvent.createView("New view", "", viewType));
|
||||||
|
},
|
||||||
|
).padding(right: MenuAppSizes.headerPadding),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _handleAction(BuildContext context, Option<AppDisclosureAction> action) {
|
void _handleAction(BuildContext context, Option<AppDisclosureAction> action) {
|
||||||
|
@ -60,7 +60,6 @@ class ViewSectionItem extends StatelessWidget {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (onHover || state.isEditing) {
|
if (onHover || state.isEditing) {
|
||||||
children.add(const Spacer());
|
|
||||||
children.add(
|
children.add(
|
||||||
ViewDisclosureButton(
|
ViewDisclosureButton(
|
||||||
onTap: () => context.read<ViewBloc>().add(const ViewEvent.setIsEditing(true)),
|
onTap: () => context.read<ViewBloc>().add(const ViewEvent.setIsEditing(true)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user