mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
chore: remove unavailable action of GridSettingAction and RowAction
This commit is contained in:
parent
0b83684c66
commit
b286276108
2 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ class GridRowActionSheet extends StatelessWidget {
|
|||
child: BlocBuilder<RowActionSheetBloc, RowActionSheetState>(
|
||||
builder: (context, state) {
|
||||
final cells = _RowAction.values
|
||||
.where((value) => value.enable())
|
||||
.map(
|
||||
(action) => _RowActionCell(
|
||||
action: action,
|
||||
|
|
|
@ -85,7 +85,7 @@ class GridSettingList extends StatelessWidget {
|
|||
}
|
||||
|
||||
Widget _renderList() {
|
||||
final cells = GridSettingAction.values.map((action) {
|
||||
final cells = GridSettingAction.values.where((value) => value.enable()).map((action) {
|
||||
return _SettingItem(action: action);
|
||||
}).toList();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue