mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 09:01:21 +00:00

* chore: enable calendar * feat: set font of the day event widget * feat: support add/remove event * chore: initial settings popover * chore: calendar bloc can update layout settings * fix: events overflow in day cell * feat: calendar layout settings UI * feat: layout calendar by another date field * chore: i18n * chore: hide the show weekend option * chore: add popover mutex * fix: clear existing events before adding new ones --------- Co-authored-by: nathan <nathan@appflowy.io>
24 lines
881 B
Dart
24 lines
881 B
Dart
import 'dart:collection';
|
|
|
|
import 'package:appflowy_backend/protobuf/flowy-database/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';
|
|
|
|
typedef OnFieldsChanged = void Function(UnmodifiableListView<FieldInfo>);
|
|
typedef OnFiltersChanged = void Function(List<FilterInfo>);
|
|
typedef OnDatabaseChanged = void Function(DatabasePB);
|
|
|
|
typedef OnRowsCreated = void Function(List<String> ids);
|
|
typedef OnRowsUpdated = void Function(List<String> ids);
|
|
typedef OnRowsDeleted = void Function(List<String> ids);
|
|
typedef OnRowsChanged = void Function(
|
|
UnmodifiableListView<RowInfo> rows,
|
|
UnmodifiableMapView<String, RowInfo> rowByRowId,
|
|
RowsChangedReason reason,
|
|
);
|
|
|
|
typedef OnError = void Function(FlowyError);
|