File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ class PTextField extends PlatformAdaptingWidget {
13
13
final BoxDecoration iosDecoration;
14
14
final InputDecoration decoration;
15
15
16
+ /// If true, we try to map the [InputDecoration] [decoration] to iOS by converting
17
+ /// [OutlineInputBorder] to a similar border on iOS. There may be more patches
18
+ /// in the future.
19
+ final bool iOSMirrorVisualDecoration;
20
+
16
21
final OverlayVisibilityMode iosPrefixMode;
17
22
18
23
final OverlayVisibilityMode iosSuffixMode;
@@ -115,6 +120,7 @@ class PTextField extends PlatformAdaptingWidget {
115
120
this .focusNode,
116
121
this .iosDecoration,
117
122
this .decoration,
123
+ this .iOSMirrorVisualDecoration = true ,
118
124
this .iosPrefixMode,
119
125
this .iosSuffixMode,
120
126
this .iosClearButtonMode,
@@ -164,7 +170,8 @@ class PTextField extends PlatformAdaptingWidget {
164
170
final decorationBorder = decoration.border;
165
171
final iosDecoration = this .iosDecoration ??
166
172
// map the outline input border to the iosDecoration by default.
167
- (decorationBorder is OutlineInputBorder
173
+ (decorationBorder is OutlineInputBorder &&
174
+ this .iOSMirrorVisualDecoration
168
175
? BoxDecoration (
169
176
border: Border .fromBorderSide (decorationBorder.borderSide),
170
177
color: decoration.fillColor,
You can’t perform that action at this time.
0 commit comments