mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: fix warnings
This commit is contained in:
parent
60cf97969c
commit
61fb13eba6
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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 = {};
|
||||
|
@ -90,7 +90,7 @@ class AFBoardColumnWidget extends StatefulWidget {
|
||||
|
||||
final DraggingStateStorage? dragStateStorage;
|
||||
|
||||
final ReorderDragTargerIndexKeyStorage? dragTargetIndexKeyStorage;
|
||||
final ReorderDragTargetIndexKeyStorage? dragTargetIndexKeyStorage;
|
||||
|
||||
final GlobalKey globalKey;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user