mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-23 03:50:09 +08:00
@@ -37,6 +37,8 @@ $SelectableRegionSelectionPatch = "lib/scripts/selectable_region.patch"
|
||||
|
||||
$EditableTextPatch = "lib/scripts/editable_text.patch"
|
||||
|
||||
$TextFieldPatch = "lib/scripts/text_field.patch"
|
||||
|
||||
# TODO: remove
|
||||
# https://github.com/flutter/flutter/pull/183261
|
||||
$SelectableRegionPatch = "lib/scripts/null_safety_for_selectable_region.patch"
|
||||
@@ -69,7 +71,7 @@ $reverts = @()
|
||||
$patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch,
|
||||
$ImageAnimPatch, $LayoutBuilderPatch, $NavigationDrawerPatch,
|
||||
$PopupMenuPatch, $FABPatch, $SelectableRegionPatch, $SelectableRegionSelectionPatch,
|
||||
$EditableTextPatch)
|
||||
$EditableTextPatch, $TextFieldPatch)
|
||||
|
||||
switch ($platform.ToLower()) {
|
||||
"android" {
|
||||
|
||||
13
lib/scripts/text_field.patch
Normal file
13
lib/scripts/text_field.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart
|
||||
index 0420aca37c2..d8eb0a639b4 100644
|
||||
--- a/packages/flutter/lib/src/material/text_field.dart
|
||||
+++ b/packages/flutter/lib/src/material/text_field.dart
|
||||
@@ -301,7 +301,7 @@ class TextField extends StatefulWidget {
|
||||
this.scrollPadding = const EdgeInsets.all(20.0),
|
||||
this.dragStartBehavior = DragStartBehavior.start,
|
||||
bool? enableInteractiveSelection,
|
||||
- this.selectAllOnFocus,
|
||||
+ this.selectAllOnFocus = false,
|
||||
this.selectionControls,
|
||||
this.onTap,
|
||||
this.onTapAlwaysCalled = false,
|
||||
Reference in New Issue
Block a user