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
e9a8315f
Unverified
Commit
e9a8315f
authored
Dec 15, 2020
by
Kate Lovett
Committed by
GitHub
Dec 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated CupertinoTextThemeData.brightness (#72017)
parent
1129e6f8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
11 deletions
+73
-11
analysis_options.yaml
analysis_options.yaml
+1
-0
test.dart
dev/bots/test.dart
+13
-0
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+36
-0
text_theme.dart
packages/flutter/lib/src/cupertino/text_theme.dart
+0
-11
.dartignore
packages/flutter/test_fixes/.dartignore
+0
-0
analysis_options.yaml
packages/flutter/test_fixes/analysis_options.yaml
+1
-0
cupertino.dart
packages/flutter/test_fixes/cupertino.dart
+11
-0
cupertino.dart.expect
packages/flutter/test_fixes/cupertino.dart.expect
+11
-0
No files found.
analysis_options.yaml
View file @
e9a8315f
...
...
@@ -42,6 +42,7 @@ analyzer:
# see https://github.com/dart-lang/sdk/issues/28463
-
"
lib/i18n/messages_*.dart"
-
"
lib/src/http/**"
-
"
test_fixes/**"
linter
:
rules
:
...
...
dev/bots/test.dart
View file @
e9a8315f
...
...
@@ -644,6 +644,18 @@ Future<void> _runFrameworkTests() async {
}
}
Future
<
void
>
runFixTests
()
async
{
final
List
<
String
>
args
=
<
String
>[
'fix'
,
'--compare-to-golden'
,
];
await
runCommand
(
dart
,
args
,
workingDirectory:
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
,
'test_fixes'
),
);
}
Future
<
void
>
runPrivateTests
()
async
{
final
List
<
String
>
args
=
<
String
>[
'run'
,
...
...
@@ -702,6 +714,7 @@ Future<void> _runFrameworkTests() async {
options:
<
String
>[
'--enable-vmservice'
],
tableData:
bigqueryApi
?.
tabledata
,
);
await
runFixTests
();
await
runPrivateTests
();
const
String
httpClientWarning
=
'Warning: At least one test in this suite creates an HttpClient. When
\n
'
...
...
packages/flutter/lib/fix_data.yaml
0 → 100644
View file @
e9a8315f
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TODO(Piinks): Add link to public user guide when available.
# Please add new fixes to the top of the file, separated by one blank line
# from other fixes. In a comment, include a link to the PR where the change
# requiring the fix was made.
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/41859
-
title
:
'
Remove
brightness'
date
:
2020-12-10
element
:
uris
:
[
'
cupertino.dart'
]
constructor
:
'
'
inClass
:
'
CupertinoTextThemeData'
changes
:
-
kind
:
'
removeParameter'
name
:
'
brightness'
# Changes made in https://github.com/flutter/flutter/pull/41859
-
title
:
'
Remove
brightness'
date
:
2020-12-10
element
:
uris
:
[
'
cupertino.dart'
]
method
:
'
copyWith'
inClass
:
'
CupertinoTextThemeData'
changes
:
-
kind
:
'
removeParameter'
name
:
'
brightness'
# Before adding a new fix: read instructions at the top of this file.
packages/flutter/lib/src/cupertino/text_theme.dart
View file @
e9a8315f
...
...
@@ -124,12 +124,6 @@ class CupertinoTextThemeData with Diagnosticable {
/// unspecified.
const
CupertinoTextThemeData
({
Color
primaryColor
=
CupertinoColors
.
systemBlue
,
// ignore: avoid_unused_constructor_parameters, the parameter is deprecated.
@Deprecated
(
'This argument no longer does anything. You can remove it. '
'This feature was deprecated after v1.10.14.'
)
Brightness
?
brightness
,
TextStyle
?
textStyle
,
TextStyle
?
actionTextStyle
,
TextStyle
?
tabLabelTextStyle
,
...
...
@@ -230,11 +224,6 @@ class CupertinoTextThemeData with Diagnosticable {
/// specified overrides.
CupertinoTextThemeData
copyWith
({
Color
?
primaryColor
,
@Deprecated
(
'This argument no longer does anything. You can remove it. '
'This feature was deprecated after v1.10.14.'
)
Brightness
?
brightness
,
TextStyle
?
textStyle
,
TextStyle
?
actionTextStyle
,
TextStyle
?
tabLabelTextStyle
,
...
...
packages/flutter/test_fixes/.dartignore
0 → 100644
View file @
e9a8315f
packages/flutter/test_fixes/analysis_options.yaml
0 → 100644
View file @
e9a8315f
# This ensures that parent analysis options do not accidentally break the fix tests.
packages/flutter/test_fixes/cupertino.dart
0 → 100644
View file @
e9a8315f
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter/cupertino.dart'
;
void
main
(
)
{
// Change made in https://github.com/flutter/flutter/pull/41859
const
CupertinoTextThemeData
themeData
=
CupertinoTextThemeData
(
brightness:
Brightness
.
dark
);
themeData
.
copyWith
(
brightness:
Brightness
.
light
);
}
packages/flutter/test_fixes/cupertino.dart.expect
0 → 100644
View file @
e9a8315f
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
void main() {
// Change made in https://github.com/flutter/flutter/pull/41859
const CupertinoTextThemeData themeData = CupertinoTextThemeData();
themeData.copyWith();
}
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