chore: add spacing between field buttons in setting popover (#4612)

This commit is contained in:
Richard Shiue 2024-02-07 10:46:36 +08:00 committed by GitHub
parent 271f781cce
commit a9c6b80f4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,6 @@ import 'package:flowy_infra/theme_extension.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:styled_widget/styled_widget.dart';
class DatabasePropertyList extends StatefulWidget {
const DatabasePropertyList({
@ -86,7 +85,7 @@ class _DatabasePropertyListState extends State<DatabasePropertyList> {
.add(DatabasePropertyEvent.moveField(from, to));
},
onReorderStart: (_) => _popoverMutex.close(),
padding: const EdgeInsets.symmetric(vertical: 6.0),
padding: const EdgeInsets.symmetric(vertical: 4.0),
children: cells,
);
},
@ -138,8 +137,9 @@ class _DatabasePropertyCellState extends State<DatabasePropertyCell> {
constraints: BoxConstraints.loose(const Size(240, 400)),
triggerActions: PopoverTriggerFlags.none,
margin: EdgeInsets.zero,
child: SizedBox(
child: Container(
height: GridSize.popoverItemHeight,
margin: const EdgeInsets.symmetric(vertical: 2, horizontal: 6),
child: FlowyButton(
hoverColor: AFThemeExtension.of(context).lightGreyHover,
text: FlowyText.medium(
@ -192,7 +192,7 @@ class _DatabasePropertyCellState extends State<DatabasePropertyCell> {
icon: visibleIcon,
),
onTap: () => _popoverController.show(),
).padding(horizontal: 6.0),
),
),
popupBuilder: (BuildContext context) {
return FieldEditor(