mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: adjust select option button hover and padding (#4323)
This commit is contained in:
parent
94bdefbf01
commit
c4ebccafd4
@ -4,7 +4,9 @@ import 'package:appflowy/plugins/database/grid/presentation/layout/sizes.dart';
|
|||||||
import 'package:appflowy/plugins/database/widgets/row/cells/select_option_cell/extension.dart';
|
import 'package:appflowy/plugins/database/widgets/row/cells/select_option_cell/extension.dart';
|
||||||
import 'package:appflowy_backend/protobuf/flowy-database2/select_option.pb.dart';
|
import 'package:appflowy_backend/protobuf/flowy-database2/select_option.pb.dart';
|
||||||
import 'package:appflowy_popover/appflowy_popover.dart';
|
import 'package:appflowy_popover/appflowy_popover.dart';
|
||||||
|
import 'package:flowy_infra/theme_extension.dart';
|
||||||
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
||||||
|
import 'package:flowy_infra_ui/style_widget/hover.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
@ -127,7 +129,13 @@ class _OptionCellState extends State<_OptionCell> {
|
|||||||
constraints: BoxConstraints.loose(const Size(460, 470)),
|
constraints: BoxConstraints.loose(const Size(460, 470)),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: child,
|
child: FlowyHover(
|
||||||
|
resetHoverOnRebuild: false,
|
||||||
|
style: HoverStyle(
|
||||||
|
hoverColor: AFThemeExtension.of(context).lightGreyHover,
|
||||||
|
),
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
popupBuilder: (BuildContext popoverContext) {
|
popupBuilder: (BuildContext popoverContext) {
|
||||||
return SelectOptionTypeOptionEditor(
|
return SelectOptionTypeOptionEditor(
|
||||||
|
@ -139,11 +139,14 @@ class SelectOptionTagCell extends StatelessWidget {
|
|||||||
child: Align(
|
child: Align(
|
||||||
alignment: AlignmentDirectional.centerStart,
|
alignment: AlignmentDirectional.centerStart,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(5.0),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 5.0,
|
||||||
|
vertical: 4.0,
|
||||||
|
),
|
||||||
child: SelectOptionTag(
|
child: SelectOptionTag(
|
||||||
option: option,
|
option: option,
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 1),
|
const EdgeInsets.symmetric(horizontal: 8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user