refactor: remove unnecessary import, add some comment to function

pull/1979/head
n7484443j 10 months ago
parent 9319c03fbf
commit 7f7efbddc9
  1. 7
      lib/src/widgets/others/delegate.dart
  2. 2
      test/bug_fix_test.dart

@ -87,6 +87,10 @@ class EditorTextSelectionGestureDetectorBuilder {
bool shouldShowSelectionToolbar = true;
PointerDeviceKind? kind;
/// Check if the selection toolbar should show.
///
/// If mouse is used, the toolbar should only show when right click.
/// Else, it should show when the selection is enabled.
bool checkSelectionToolbarShouldShow({required bool isAdditionalAction}) {
if (kind != PointerDeviceKind.mouse) {
return shouldShowSelectionToolbar;
@ -320,8 +324,7 @@ class EditorTextSelectionGestureDetectorBuilder {
/// * [EditorTextSelectionGestureDetector.onDragSelectionUpdate],
/// which triggers this callback./lib/src/material/text_field.dart
@protected
void onDragSelectionUpdate(
//DragStartDetails startDetails,
void onDragSelectionUpdate(//DragStartDetails startDetails,
DragUpdateDetails updateDetails) {
renderEditor!.extendSelection(
updateDetails.globalPosition,

@ -1,5 +1,3 @@
import 'dart:ui';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_quill/flutter_quill.dart';

Loading…
Cancel
Save