소스 검색

ci: fix warnings

appflowy 2 년 전
부모
커밋
61fb13eba6

+ 1 - 1
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;

+ 0 - 1
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);

+ 1 - 1
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 = {};

+ 1 - 1
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;
 

+ 1 - 1
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;

+ 3 - 3
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,