mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: adjust insets of some popup
This commit is contained in:
@ -85,6 +85,7 @@ class _BoardCardState extends State<BoardCard> {
|
|||||||
controller: popoverController,
|
controller: popoverController,
|
||||||
triggerActions: PopoverTriggerFlags.none,
|
triggerActions: PopoverTriggerFlags.none,
|
||||||
constraints: BoxConstraints.loose(const Size(140, 200)),
|
constraints: BoxConstraints.loose(const Size(140, 200)),
|
||||||
|
margin: const EdgeInsets.all(6),
|
||||||
direction: PopoverDirection.rightWithCenterAligned,
|
direction: PopoverDirection.rightWithCenterAligned,
|
||||||
popupBuilder: (popoverContext) => _handlePopoverBuilder(
|
popupBuilder: (popoverContext) => _handlePopoverBuilder(
|
||||||
context,
|
context,
|
||||||
|
@ -109,6 +109,7 @@ class _RowLeadingState extends State<_RowLeading> {
|
|||||||
triggerActions: PopoverTriggerFlags.none,
|
triggerActions: PopoverTriggerFlags.none,
|
||||||
constraints: BoxConstraints.loose(const Size(140, 200)),
|
constraints: BoxConstraints.loose(const Size(140, 200)),
|
||||||
direction: PopoverDirection.rightWithCenterAligned,
|
direction: PopoverDirection.rightWithCenterAligned,
|
||||||
|
margin: const EdgeInsets.all(6),
|
||||||
popupBuilder: (BuildContext popoverContext) {
|
popupBuilder: (BuildContext popoverContext) {
|
||||||
return GridRowActionSheet(
|
return GridRowActionSheet(
|
||||||
rowData: context.read<RowBloc>().state.rowInfo);
|
rowData: context.read<RowBloc>().state.rowInfo);
|
||||||
|
@ -55,6 +55,7 @@ class _SettingButton extends StatelessWidget {
|
|||||||
return AppFlowyPopover(
|
return AppFlowyPopover(
|
||||||
constraints: BoxConstraints.loose(const Size(260, 400)),
|
constraints: BoxConstraints.loose(const Size(260, 400)),
|
||||||
offset: const Offset(0, 10),
|
offset: const Offset(0, 10),
|
||||||
|
margin: const EdgeInsets.all(6),
|
||||||
child: FlowyIconButton(
|
child: FlowyIconButton(
|
||||||
width: 22,
|
width: 22,
|
||||||
hoverColor: theme.hover,
|
hoverColor: theme.hover,
|
||||||
|
@ -30,7 +30,7 @@ class AppFlowyPopover extends StatelessWidget {
|
|||||||
this.offset,
|
this.offset,
|
||||||
this.controller,
|
this.controller,
|
||||||
this.asBarrier = false,
|
this.asBarrier = false,
|
||||||
this.margin = const EdgeInsets.all(6),
|
this.margin = const EdgeInsets.all(12),
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Reference in New Issue
Block a user