mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-22 11:30:13 +08:00
26 lines
1014 B
Diff
26 lines
1014 B
Diff
diff --git a/packages/flutter/lib/src/widgets/selectable_region.dart b/packages/flutter/lib/src/widgets/selectable_region.dart
|
|
index 59de8bae20b..a1b6ea5651e 100644
|
|
--- a/packages/flutter/lib/src/widgets/selectable_region.dart
|
|
+++ b/packages/flutter/lib/src/widgets/selectable_region.dart
|
|
@@ -1957,6 +1957,8 @@ class SelectableRegionState extends State<SelectableRegion>
|
|
// the region on non-web platforms.
|
|
if (kIsWeb) {
|
|
_focusNode.unfocus();
|
|
+ } else {
|
|
+ clearSelection();
|
|
}
|
|
},
|
|
child: CompositedTransformTarget(
|
|
@@ -2822,7 +2824,10 @@ abstract class MultiSelectableSelectionContainerDelegate extends SelectionContai
|
|
return null;
|
|
}
|
|
final buffer = StringBuffer();
|
|
- for (final selection in selections) {
|
|
+ for (final (i, selection) in selections.indexed) {
|
|
+ if (i != 0) {
|
|
+ buffer.write('\n');
|
|
+ }
|
|
buffer.write(selection.plainText);
|
|
}
|
|
return SelectedContent(plainText: buffer.toString());
|