mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-08 18:20:12 +08:00
selectable region selection patch
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
16
lib/scripts/selectable_region.patch
Normal file
16
lib/scripts/selectable_region.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/packages/flutter/lib/src/widgets/selectable_region.dart b/packages/flutter/lib/src/widgets/selectable_region.dart
|
||||
index 59de8bae20b..07ac6981c78 100644
|
||||
--- a/packages/flutter/lib/src/widgets/selectable_region.dart
|
||||
+++ b/packages/flutter/lib/src/widgets/selectable_region.dart
|
||||
@@ -2822,7 +2822,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());
|
||||
Reference in New Issue
Block a user