mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 17:11:23 +00:00

* chore: rename update at and create at * chore: support switching view layout * chore: implement ui * chore: update layout type * refactor: board/calendar/grid setting button * chore: update UI after switch to other layout type * fix: no date display in calendar * chore: update patch * chore: fix create ref view in document * chore: fix flutter analyze * ci: warnings * chore: rename board and grid keys * fix: calendar row event update --------- Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
25 lines
914 B
Dart
25 lines
914 B
Dart
import 'dart:collection';
|
|
|
|
import 'package:appflowy_backend/protobuf/flowy-database2/database_entities.pb.dart';
|
|
import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
|
|
|
|
import '../grid/presentation/widgets/filter/filter_info.dart';
|
|
import 'field/field_controller.dart';
|
|
import 'row/row_cache.dart';
|
|
import 'row/row_service.dart';
|
|
|
|
typedef OnFieldsChanged = void Function(UnmodifiableListView<FieldInfo>);
|
|
typedef OnFiltersChanged = void Function(List<FilterInfo>);
|
|
typedef OnDatabaseChanged = void Function(DatabasePB);
|
|
|
|
typedef OnRowsCreated = void Function(List<RowId> ids);
|
|
typedef OnRowsUpdated = void Function(List<RowId> ids);
|
|
typedef OnRowsDeleted = void Function(List<RowId> ids);
|
|
typedef OnNumOfRowsChanged = void Function(
|
|
UnmodifiableListView<RowInfo> rows,
|
|
UnmodifiableMapView<RowId, RowInfo> rowByRowId,
|
|
RowsChangedReason reason,
|
|
);
|
|
|
|
typedef OnError = void Function(FlowyError);
|