mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: add spacing between field buttons in setting popover (#4612)
This commit is contained in:
parent
271f781cce
commit
a9c6b80f4a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user