mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: remove unavailable action of GridSettingAction and RowAction
This commit is contained in:
parent
0b83684c66
commit
b286276108
@ -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…
Reference in New Issue
Block a user