mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: selection areas could not overlay
This commit is contained in:
parent
b245841ec3
commit
29fe4811c3
@ -25,10 +25,14 @@ class _SelectionWidgetState extends State<SelectionWidget> {
|
|||||||
link: widget.layerLink,
|
link: widget.layerLink,
|
||||||
offset: widget.rect.topLeft,
|
offset: widget.rect.topLeft,
|
||||||
showWhenUnlinked: true,
|
showWhenUnlinked: true,
|
||||||
|
// Ignore the gestures in selection overlays
|
||||||
|
// to solve the problem that selection areas cannot overlap.
|
||||||
|
child: IgnorePointer(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: widget.color,
|
color: widget.color,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,7 +5,7 @@ import 'package:flowy_editor/document/position.dart';
|
|||||||
import 'package:flowy_editor/document/selection.dart';
|
import 'package:flowy_editor/document/selection.dart';
|
||||||
import 'package:flowy_editor/render/selection/selectable.dart';
|
import 'package:flowy_editor/render/selection/selectable.dart';
|
||||||
import 'package:flowy_editor/render/selection/cursor_widget.dart';
|
import 'package:flowy_editor/render/selection/cursor_widget.dart';
|
||||||
import 'package:flowy_editor/render/selection/flowy_selection_widget.dart';
|
import 'package:flowy_editor/render/selection/selection_widget.dart';
|
||||||
import 'package:flowy_editor/extensions/object_extensions.dart';
|
import 'package:flowy_editor/extensions/object_extensions.dart';
|
||||||
import 'package:flowy_editor/extensions/node_extensions.dart';
|
import 'package:flowy_editor/extensions/node_extensions.dart';
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user