Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

refactor: remove useless popoverMutex from _AddOptionButton widget

Cyrine-benabidc7d8a0b7c396
diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
index 047c0997c9..7463509e02 100644
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
@@ -52,7 +52,7 @@ class SelectOptionTypeOptionWidget extends StatelessWidget {
),
),
if (state.options.isEmpty && !state.isEditingOption)
- _AddOptionButton(popoverMutex: popoverMutex),
+ const _AddOptionButton(),
_OptionList(popoverMutex: popoverMutex)
];
@@ -231,11 +231,7 @@ class _OptionCellState extends State<_OptionCell> {
}
class _AddOptionButton extends StatelessWidget {
- final PopoverMutex? popoverMutex;
- const _AddOptionButton({
- Key? key,
- this.popoverMutex,
- }) : super(key: key);
+ const _AddOptionButton({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {