Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
59d8aca3
Unverified
Commit
59d8aca3
authored
Nov 03, 2021
by
Konstantin Scheglov
Committed by
GitHub
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few prefer_const_declarations and avoid_redundant_argument_values. (#92929)
parent
ffcd32eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
text_field_test.dart
packages/flutter/test/cupertino/text_field_test.dart
+1
-1
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+2
-2
image_provider_network_image_test.dart
...tter/test/painting/image_provider_network_image_test.dart
+1
-1
date_picker_test.dart
...flutter_localizations/test/material/date_picker_test.dart
+1
-1
No files found.
packages/flutter/test/cupertino/text_field_test.dart
View file @
59d8aca3
...
...
@@ -27,7 +27,7 @@ import '../widgets/editable_text_utils.dart' show OverflowWidgetTextEditingContr
import
'../widgets/semantics_tester.dart'
;
// On web, the context menu (aka toolbar) is provided by the browser.
final
bool
isContextMenuProvidedByPlatform
=
isBrowser
;
const
bool
isContextMenuProvidedByPlatform
=
isBrowser
;
class
MockTextSelectionControls
extends
TextSelectionControls
{
@override
...
...
packages/flutter/test/material/text_field_test.dart
View file @
59d8aca3
...
...
@@ -31,10 +31,10 @@ import 'feedback_tester.dart';
typedef
FormatEditUpdateCallback
=
void
Function
(
TextEditingValue
,
TextEditingValue
);
// On web, the context menu (aka toolbar) is provided by the browser.
final
bool
isContextMenuProvidedByPlatform
=
isBrowser
;
const
bool
isContextMenuProvidedByPlatform
=
isBrowser
;
// On web, key events in text fields are handled by the browser.
final
bool
areKeyEventsHandledByPlatform
=
isBrowser
;
const
bool
areKeyEventsHandledByPlatform
=
isBrowser
;
class
MaterialLocalizationsDelegate
extends
LocalizationsDelegate
<
MaterialLocalizations
>
{
@override
...
...
packages/flutter/test/painting/image_provider_network_image_test.dart
View file @
59d8aca3
...
...
@@ -36,7 +36,7 @@ void main() {
});
test
(
'Expect thrown exception with statusCode - evicts from cache and drains'
,
()
async
{
final
int
errorStatusCode
=
HttpStatus
.
notFound
;
const
int
errorStatusCode
=
HttpStatus
.
notFound
;
const
String
requestUrl
=
'foo-url'
;
httpClient
.
request
.
response
.
statusCode
=
errorStatusCode
;
...
...
packages/flutter_localizations/test/material/date_picker_test.dart
View file @
59d8aca3
...
...
@@ -13,7 +13,7 @@ void main() {
late
DateTime
initialDate
;
setUp
(()
{
firstDate
=
DateTime
(
2001
,
DateTime
.
january
);
firstDate
=
DateTime
(
2001
);
lastDate
=
DateTime
(
2031
,
DateTime
.
december
,
31
);
initialDate
=
DateTime
(
2016
,
DateTime
.
january
,
15
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment