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
ce7789e0
Unverified
Commit
ce7789e0
authored
Sep 20, 2022
by
Greg Spencer
Committed by
GitHub
Sep 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some miscellaneous changes found while making another PR (#111620)
parent
4aea2f99
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
actions.dart
dev/manual_tests/lib/actions.dart
+1
-1
switch.1.dart
examples/api/lib/material/switch/switch.1.dart
+1
-1
button_style_button.dart
packages/flutter/lib/src/material/button_style_button.dart
+2
-0
platform_menu_bar_test.dart
packages/flutter/test/widgets/platform_menu_bar_test.dart
+8
-8
No files found.
dev/manual_tests/lib/actions.dart
View file @
ce7789e0
...
...
@@ -340,7 +340,7 @@ class _DemoButtonState extends State<DemoButton> {
return
TextButton
(
focusNode:
_focusNode
,
style:
ButtonStyle
(
foregroundColor:
MaterialStateProperty
.
a
ll
<
Color
>(
Colors
.
black
),
foregroundColor:
const
MaterialStatePropertyA
ll
<
Color
>(
Colors
.
black
),
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
>((
Set
<
MaterialState
>
states
)
{
if
(
states
.
contains
(
MaterialState
.
focused
))
{
return
Colors
.
red
;
...
...
examples/api/lib/material/switch/switch.1.dart
View file @
ce7789e0
...
...
@@ -70,7 +70,7 @@ class _SwitchExampleState extends State<SwitchExample> {
value:
light
,
overlayColor:
overlayColor
,
trackColor:
trackColor
,
thumbColor:
MaterialStateProperty
.
a
ll
<
Color
>(
Colors
.
black
),
thumbColor:
const
MaterialStatePropertyA
ll
<
Color
>(
Colors
.
black
),
onChanged:
(
bool
value
)
{
// This is called when the user toggles the switch.
setState
(()
{
...
...
packages/flutter/lib/src/material/button_style_button.dart
View file @
ce7789e0
...
...
@@ -102,6 +102,8 @@ abstract class ButtonStyleButton extends StatefulWidget {
final
MaterialStatesController
?
statesController
;
/// Typically the button's label.
///
/// {@macro flutter.widgets.ProxyWidget.child}
final
Widget
?
child
;
/// Returns a non-null [ButtonStyle] that's based primarily on the [Theme]'s
...
...
packages/flutter/test/widgets/platform_menu_bar_test.dart
View file @
ce7789e0
...
...
@@ -103,7 +103,7 @@ void main() {
'children'
:
<
Map
<
String
,
Object
?>>[
<
String
,
Object
?>{
'id'
:
7
,
'label'
:
'Sub Sub Menu 1
0
0'
,
'label'
:
'Sub Sub Menu 1
1
0'
,
'enabled'
:
true
,
'shortcutTrigger'
:
97
,
'shortcutModifiers'
:
8
,
...
...
@@ -111,7 +111,7 @@ void main() {
<
String
,
Object
?>{
'id'
:
8
,
'isDivider'
:
true
},
<
String
,
Object
?>{
'id'
:
10
,
'label'
:
'Sub Sub Menu 1
0
1'
,
'label'
:
'Sub Sub Menu 1
1
1'
,
'enabled'
:
true
,
'shortcutTrigger'
:
98
,
'shortcutModifiers'
:
2
,
...
...
@@ -119,7 +119,7 @@ void main() {
<
String
,
Object
?>{
'id'
:
11
,
'isDivider'
:
true
},
<
String
,
Object
?>{
'id'
:
12
,
'label'
:
'Sub Sub Menu 1
0
2'
,
'label'
:
'Sub Sub Menu 1
1
2'
,
'enabled'
:
true
,
'shortcutTrigger'
:
99
,
'shortcutModifiers'
:
4
,
...
...
@@ -127,7 +127,7 @@ void main() {
<
String
,
Object
?>{
'id'
:
13
,
'isDivider'
:
true
},
<
String
,
Object
?>{
'id'
:
14
,
'label'
:
'Sub Sub Menu 1
0
3'
,
'label'
:
'Sub Sub Menu 1
1
3'
,
'enabled'
:
true
,
'shortcutTrigger'
:
100
,
'shortcutModifiers'
:
1
,
...
...
@@ -248,10 +248,10 @@ const List<String> subMenu1 = <String>[
];
const
List
<
String
>
subSubMenu10
=
<
String
>[
'Sub Sub Menu 1
0
0'
,
'Sub Sub Menu 1
0
1'
,
'Sub Sub Menu 1
0
2'
,
'Sub Sub Menu 1
0
3'
,
'Sub Sub Menu 1
1
0'
,
'Sub Sub Menu 1
1
1'
,
'Sub Sub Menu 1
1
2'
,
'Sub Sub Menu 1
1
3'
,
];
const
List
<
String
>
subMenu2
=
<
String
>[
...
...
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