Skip to content

Commit

Permalink
Fixes compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zlshames committed Aug 31, 2022
1 parent 1f6c4a4 commit 4419c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions packages/flutter/lib/src/cupertino/text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class CupertinoTextField extends StatefulWidget {
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
List<String> contentCommitMimeTypes = const <String>[],
this.contentCommitMimeTypes = const <String>[],
}) : assert(textAlign != null),
assert(readOnly != null),
assert(autofocus != null),
Expand Down Expand Up @@ -314,16 +314,6 @@ class CupertinoTextField extends StatefulWidget {
assert(contentCommitMimeTypes != null),
keyboardType = keyboardType ?? (maxLines == 1 ? TextInputType.text : TextInputType.multiline),
enableInteractiveSelection = enableInteractiveSelection ?? (!readOnly || !obscureText),
contentCommitMimeTypes = contentCommitMimeTypes.isEmpty
? onContentCommitted == null ? const <String>[] : const <String>[
'image/png',
'image/bmp',
'image/jpg',
'image/tiff',
'image/gif',
'image/jpeg',
'image/webp'
] : contentCommitMimeTypes,
toolbarOptions = toolbarOptions ??
(obscureText
? (readOnly
Expand Down
12 changes: 1 addition & 11 deletions packages/flutter/lib/src/material/text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class TextField extends StatefulWidget {
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
List<String> contentCommitMimeTypes = const <String>[],
this.contentCommitMimeTypes = const <String>[],
}) : assert(textAlign != null),
assert(readOnly != null),
assert(autofocus != null),
Expand Down Expand Up @@ -369,16 +369,6 @@ class TextField extends StatefulWidget {
assert(contentCommitMimeTypes != null),
keyboardType = keyboardType ?? (maxLines == 1 ? TextInputType.text : TextInputType.multiline),
enableInteractiveSelection = enableInteractiveSelection ?? (!readOnly || !obscureText),
contentCommitMimeTypes = contentCommitMimeTypes.isEmpty
? (onContentCommitted == null ? const <String>[] : const <String>[
'image/png',
'image/bmp',
'image/jpg',
'image/tiff',
'image/gif',
'image/jpeg',
'image/webp'
]) : contentCommitMimeTypes,
toolbarOptions = toolbarOptions ??
(obscureText
? (readOnly
Expand Down

0 comments on commit 4419c55

Please sign in to comment.