fix: remove padding on popovers of newly-created fields (#2268)

This commit is contained in:
Richard Shiue 2023-04-24 10:22:09 +08:00 committed by GitHub
parent 9e47603360
commit aaa3eb9041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,7 @@ class CreateFieldButton extends StatelessWidget {
return AppFlowyPopover(
direction: PopoverDirection.bottomWithRightAligned,
asBarrier: true,
margin: EdgeInsets.zero,
constraints: BoxConstraints.loose(const Size(240, 600)),
child: FlowyButton(
radius: BorderRadius.zero,

View File

@ -206,6 +206,7 @@ class _CreatePropertyButtonState extends State<_CreatePropertyButton> {
constraints: BoxConstraints.loose(const Size(240, 200)),
controller: popoverController,
direction: PopoverDirection.topWithLeftAligned,
margin: EdgeInsets.zero,
onClose: widget.onClosed,
child: Container(
height: 40,