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
7c4c3419
Unverified
Commit
7c4c3419
authored
Mar 17, 2021
by
Hans Muller
Committed by
GitHub
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove accentColor et al. from tests (#78449)
parent
93a5d17a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
27 deletions
+20
-27
stock_home.dart
dev/benchmarks/test_apps/stocks/lib/stock_home.dart
+2
-2
bottom_app_bar_demo.dart
...lutter_gallery/lib/demo/material/bottom_app_bar_demo.dart
+1
-1
overlay_geometry.dart
dev/manual_tests/lib/overlay_geometry.dart
+5
-8
page_view.dart
dev/manual_tests/lib/page_view.dart
+5
-8
scaffold_test.dart
packages/flutter/test/material/scaffold_test.dart
+1
-1
snack_bar_test.dart
packages/flutter/test/material/snack_bar_test.dart
+1
-5
editable_text_test.dart
packages/flutter/test/widgets/editable_text_test.dart
+5
-2
No files found.
dev/benchmarks/test_apps/stocks/lib/stock_home.dart
View file @
7c4c3419
...
...
@@ -286,7 +286,7 @@ class StockHomeState extends State<StockHome> {
AppBar
buildSearchBar
()
{
return
AppBar
(
leading:
BackButton
(
color:
Theme
.
of
(
context
).
accentColor
,
color:
Theme
.
of
(
context
).
colorScheme
.
secondary
,
),
title:
TextField
(
controller:
_searchQuery
,
...
...
@@ -310,7 +310,7 @@ class StockHomeState extends State<StockHome> {
return
FloatingActionButton
(
tooltip:
'Create company'
,
child:
const
Icon
(
Icons
.
add
),
backgroundColor:
Theme
.
of
(
context
).
accentColor
,
backgroundColor:
Theme
.
of
(
context
).
colorScheme
.
secondary
,
onPressed:
_handleCreateCompany
,
);
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart
View file @
7c4c3419
...
...
@@ -437,7 +437,7 @@ class _DiamondFab extends StatelessWidget {
width:
56.0
,
height:
56.0
,
child:
IconTheme
.
merge
(
data:
IconThemeData
(
color:
Theme
.
of
(
context
).
accentIconTheme
.
color
),
data:
IconThemeData
(
color:
Theme
.
of
(
context
).
colorScheme
.
secondary
),
child:
child
!,
),
),
...
...
dev/manual_tests/lib/overlay_geometry.dart
View file @
7c4c3419
...
...
@@ -204,13 +204,10 @@ class OverlayGeometryAppState extends State<OverlayGeometryApp> {
}
void
main
(
)
{
runApp
(
MaterialApp
(
theme:
ThemeData
(
brightness:
Brightness
.
light
,
primarySwatch:
Colors
.
blue
,
accentColor:
Colors
.
redAccent
,
runApp
(
const
MaterialApp
(
title:
'Cards'
,
home:
OverlayGeometryApp
(),
),
title:
'Cards'
,
home:
const
OverlayGeometryApp
(),
));
);
}
dev/manual_tests/lib/page_view.dart
View file @
7c4c3419
...
...
@@ -141,13 +141,10 @@ class PageViewAppState extends State<PageViewApp> {
}
void
main
(
)
{
runApp
(
MaterialApp
(
title:
'PageView'
,
theme:
ThemeData
(
brightness:
Brightness
.
light
,
primarySwatch:
Colors
.
blue
,
accentColor:
Colors
.
redAccent
,
runApp
(
const
MaterialApp
(
title:
'PageView'
,
home:
PageViewApp
(),
),
home:
const
PageViewApp
(),
));
);
}
packages/flutter/test/material/scaffold_test.dart
View file @
7c4c3419
...
...
@@ -1848,7 +1848,7 @@ void main() {
child:
Text
(
'This is a Material persistent bottom sheet. Drag downwards to dismiss it.'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
themeData
.
accentColor
,
color:
themeData
.
colorScheme
.
secondary
,
fontSize:
24.0
,
),
),
...
...
packages/flutter/test/material/snack_bar_test.dart
View file @
7c4c3419
...
...
@@ -690,14 +690,12 @@ void main() {
},
);
final
ThemeData
theme
=
ThemeData
.
raw
(
final
ThemeData
theme
=
ThemeData
.
light
().
copyWith
(
visualDensity:
VisualDensity
.
standard
,
primaryColor:
Colors
.
black
,
primaryColorBrightness:
Brightness
.
dark
,
primaryColorLight:
Colors
.
black
,
primaryColorDark:
Colors
.
black
,
accentColor:
Colors
.
black
,
accentColorBrightness:
Brightness
.
dark
,
canvasColor:
Colors
.
black
,
shadowColor:
Colors
.
black
,
scaffoldBackgroundColor:
Colors
.
black
,
...
...
@@ -727,11 +725,9 @@ void main() {
toggleableActiveColor:
Colors
.
black
,
textTheme:
ThemeData
.
dark
().
textTheme
,
primaryTextTheme:
ThemeData
.
dark
().
textTheme
,
accentTextTheme:
ThemeData
.
dark
().
textTheme
,
inputDecorationTheme:
ThemeData
.
dark
().
inputDecorationTheme
.
copyWith
(
border:
const
OutlineInputBorder
()),
iconTheme:
ThemeData
.
dark
().
iconTheme
,
primaryIconTheme:
ThemeData
.
dark
().
iconTheme
,
accentIconTheme:
ThemeData
.
dark
().
iconTheme
,
sliderTheme:
sliderTheme
,
tabBarTheme:
const
TabBarTheme
(
labelColor:
Colors
.
black
),
tooltipTheme:
const
TooltipThemeData
(
height:
100
),
...
...
packages/flutter/test/widgets/editable_text_test.dart
View file @
7c4c3419
...
...
@@ -5888,8 +5888,11 @@ void main() {
testWidgets
(
'TextEditingController.buildTextSpan receives build context'
,
(
WidgetTester
tester
)
async
{
final
_AccentColorTextEditingController
controller
=
_AccentColorTextEditingController
(
'a'
);
const
Color
color
=
Color
.
fromARGB
(
255
,
1
,
2
,
3
);
final
ThemeData
lightTheme
=
ThemeData
.
light
();
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
.
light
().
copyWith
(
accentColor:
color
),
theme:
lightTheme
.
copyWith
(
colorScheme:
lightTheme
.
colorScheme
.
copyWith
(
secondary:
color
),
),
home:
EditableText
(
controller:
controller
,
focusNode:
FocusNode
(),
...
...
@@ -7559,7 +7562,7 @@ class _AccentColorTextEditingController extends TextEditingController {
@override
TextSpan
buildTextSpan
({
required
BuildContext
context
,
TextStyle
?
style
,
required
bool
withComposing
})
{
final
Color
color
=
Theme
.
of
(
context
).
accentColor
;
final
Color
color
=
Theme
.
of
(
context
).
colorScheme
.
secondary
;
return
super
.
buildTextSpan
(
context:
context
,
style:
TextStyle
(
color:
color
),
withComposing:
withComposing
);
}
}
...
...
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