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
89d26d8d
Unverified
Commit
89d26d8d
authored
May 03, 2021
by
Hans Muller
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some trivial formatting issues (#81699)
parent
5e86d695
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
popup_menu_test.dart
packages/flutter/test/material/popup_menu_test.dart
+33
-33
No files found.
packages/flutter/test/material/popup_menu_test.dart
View file @
89d26d8d
...
...
@@ -300,21 +300,21 @@ void main() {
child:
PopupMenuButton
<
void
>(
child:
const
Text
(
'Actions'
),
itemBuilder:
(
BuildContext
context
)
=>
<
PopupMenuItem
<
void
>>[
PopupMenuItem
<
void
>(
child:
const
Text
(
'First option'
),
onTap:
()
{
menuItemTapCounters
[
0
]++
;
},
),
PopupMenuItem
<
void
>(
child:
const
Text
(
'Second option'
),
onTap:
()
{
menuItemTapCounters
[
1
]++
;
},
),
const
PopupMenuItem
<
void
>(
child:
Text
(
'Option without onTap'
),
),
PopupMenuItem
<
void
>(
child:
const
Text
(
'First option'
),
onTap:
()
{
menuItemTapCounters
[
0
]
+=
1
;
},
),
PopupMenuItem
<
void
>(
child:
const
Text
(
'Second option'
),
onTap:
()
{
menuItemTapCounters
[
1
]
+=
1
;
},
),
const
PopupMenuItem
<
void
>(
child:
Text
(
'Option without onTap'
),
),
],
),
),
...
...
@@ -364,24 +364,24 @@ void main() {
child:
const
Text
(
'Actions'
),
onSelected:
(
String
value
)
{
selected
=
value
;
},
itemBuilder:
(
BuildContext
context
)
=>
<
PopupMenuItem
<
String
>>[
PopupMenuItem
<
String
>(
child:
const
Text
(
'First option'
),
value:
'first'
,
onTap:
()
{
menuItemTapCounters
[
0
]++
;
},
),
PopupMenuItem
<
String
>(
child:
const
Text
(
'Second option'
),
value:
'second'
,
onTap:
()
{
menuItemTapCounters
[
1
]++
;
},
),
const
PopupMenuItem
<
String
>(
child:
Text
(
'Option without onTap'
),
value:
'third'
,
),
PopupMenuItem
<
String
>(
child:
const
Text
(
'First option'
),
value:
'first'
,
onTap:
()
{
menuItemTapCounters
[
0
]
+=
1
;
},
),
PopupMenuItem
<
String
>(
child:
const
Text
(
'Second option'
),
value:
'second'
,
onTap:
()
{
menuItemTapCounters
[
1
]
+=
1
;
},
),
const
PopupMenuItem
<
String
>(
child:
Text
(
'Option without onTap'
),
value:
'third'
,
),
],
),
),
...
...
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