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.

ci: fix warnings

appflowy61fb13eba6cf
diff --git a/frontend/app_flowy/lib/plugins/board/application/board_bloc.dart b/frontend/app_flowy/lib/plugins/board/application/board_bloc.dart
index c9709698de..dcac0a47bb 100644
--- a/frontend/app_flowy/lib/plugins/board/application/board_bloc.dart
+++ b/frontend/app_flowy/lib/plugins/board/application/board_bloc.dart
@@ -230,7 +230,7 @@ class BoardBloc extends Bloc<BoardEvent, BoardState> {
@freezed
class BoardEvent with _$BoardEvent {
- const factory BoardEvent.initial() = InitialBrid;
+ const factory BoardEvent.initial() = _InitialBoard;
const factory BoardEvent.createRow(String groupId) = _CreateRow;
const factory BoardEvent.didCreateRow(String groupId, RowPB row) =
_DidCreateRow;
diff --git a/frontend/app_flowy/lib/plugins/board/application/group_controller.dart b/frontend/app_flowy/lib/plugins/board/application/group_controller.dart
index 942fa872c4..812dbc76d3 100644
--- a/frontend/app_flowy/lib/plugins/board/application/group_controller.dart
+++ b/frontend/app_flowy/lib/plugins/board/application/group_controller.dart
@@ -1,7 +1,6 @@
import 'package:flowy_sdk/log.dart';
import 'package:flowy_sdk/protobuf/flowy-error/errors.pb.dart';
import 'package:flowy_sdk/protobuf/flowy-grid/protobuf.dart';
-import 'package:protobuf/protobuf.dart';
import 'group_listener.dart';
typedef OnGroupError = void Function(FlowyError);
diff --git a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board.dart b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board.dart
index 6c2f55f2af..67d8111aec 100644
--- a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board.dart
+++ b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board.dart
@@ -329,7 +329,7 @@ class BoardColumnContext {
}
class BoardColumnsState extends DraggingStateStorage
- with ReorderDragTargerIndexKeyStorage {
+ with ReorderDragTargetIndexKeyStorage {
/// Quick access to the [AFBoardColumnWidget]
final Map<String, GlobalKey> columnKeys = {};
final Map<String, DraggingState> columnDragStates = {};
diff --git a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board_column/board_column.dart b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board_column/board_column.dart
index ac4158a3e3..a89ef269cb 100644
--- a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board_column/board_column.dart
+++ b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/board_column/board_column.dart
@@ -90,7 +90,7 @@ class AFBoardColumnWidget extends StatefulWidget {
final DraggingStateStorage? dragStateStorage;
- final ReorderDragTargerIndexKeyStorage? dragTargetIndexKeyStorage;
+ final ReorderDragTargetIndexKeyStorage? dragTargetIndexKeyStorage;
final GlobalKey globalKey;
diff --git a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/drag_state.dart b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/drag_state.dart
index ef2c89418c..f795efa6b3 100644
--- a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/drag_state.dart
+++ b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/drag_state.dart
@@ -186,7 +186,7 @@ class DraggingState {
nextIndex = index;
}
- void setStartDragggingIndex(int index) {
+ void setStartDraggingIndex(int index) {
Log.debug('$reorderFlexId setDragIndex: $index');
dragStartIndex = index;
phantomIndex = index;
diff --git a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/reorder_flex.dart b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/reorder_flex.dart
index 0850b5f030..b0f511f641 100644
--- a/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/reorder_flex.dart
+++ b/frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/reorder_flex.dart
@@ -31,7 +31,7 @@ abstract class ReoderFlexItem {
String get id;
}
-abstract class ReorderDragTargerIndexKeyStorage {
+abstract class ReorderDragTargetIndexKeyStorage {
void addKey(String reorderFlexId, String key, GlobalObjectKey value);
GlobalObjectKey? readKey(String reorderFlexId, String key);
}
@@ -80,7 +80,7 @@ class ReorderFlex extends StatefulWidget {
final DraggingStateStorage? dragStateStorage;
- final ReorderDragTargerIndexKeyStorage? dragTargetIndexKeyStorage;
+ final ReorderDragTargetIndexKeyStorage? dragTargetIndexKeyStorage;
ReorderFlex({
Key? key,
@@ -468,7 +468,7 @@ class ReorderFlexState extends State<ReorderFlex>
}
void resetDragTargetIndex(int dragTargetIndex) {
- dragState.setStartDragggingIndex(dragTargetIndex);
+ dragState.setStartDraggingIndex(dragTargetIndex);
widget.dragStateStorage?.write(
widget.reorderFlexId,
dragState,