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
e9e2ca16
Unverified
Commit
e9e2ca16
authored
Sep 12, 2018
by
Jonah Williams
Committed by
GitHub
Sep 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use dense dropdown buttons in the Gallery date/time picker demo (#21693)
parent
dd1c22e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
date_and_time_picker_demo.dart
..._gallery/lib/demo/material/date_and_time_picker_demo.dart
+2
-1
accessibility_test.dart
examples/flutter_gallery/test/accessibility_test.dart
+1
-1
No files found.
examples/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart
View file @
e9e2ca16
...
@@ -181,15 +181,16 @@ class _DateAndTimePickerDemoState extends State<DateAndTimePickerDemo> {
...
@@ -181,15 +181,16 @@ class _DateAndTimePickerDemoState extends State<DateAndTimePickerDemo> {
});
});
},
},
),
),
const
SizedBox
(
height:
8.0
),
InputDecorator
(
InputDecorator
(
decoration:
const
InputDecoration
(
decoration:
const
InputDecoration
(
labelText:
'Activity'
,
labelText:
'Activity'
,
hintText:
'Choose an activity'
,
hintText:
'Choose an activity'
,
contentPadding:
EdgeInsets
.
zero
,
),
),
isEmpty:
_activity
==
null
,
isEmpty:
_activity
==
null
,
child:
DropdownButton
<
String
>(
child:
DropdownButton
<
String
>(
value:
_activity
,
value:
_activity
,
isDense:
true
,
onChanged:
(
String
newValue
)
{
onChanged:
(
String
newValue
)
{
setState
(()
{
setState
(()
{
_activity
=
newValue
;
_activity
=
newValue
;
...
...
examples/flutter_gallery/test/accessibility_test.dart
View file @
e9e2ca16
...
@@ -58,7 +58,7 @@ void main() {
...
@@ -58,7 +58,7 @@ void main() {
await
tester
.
pumpWidget
(
MaterialApp
(
home:
DateAndTimePickerDemo
()));
await
tester
.
pumpWidget
(
MaterialApp
(
home:
DateAndTimePickerDemo
()));
expect
(
tester
,
meetsGuideline
(
androidTapTargetGuideline
));
expect
(
tester
,
meetsGuideline
(
androidTapTargetGuideline
));
handle
.
dispose
();
handle
.
dispose
();
}
,
skip:
true
);
// https://github.com/flutter/flutter/issues/21578
}
);
testWidgets
(
'dialog_demo'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'dialog_demo'
,
(
WidgetTester
tester
)
async
{
final
SemanticsHandle
handle
=
tester
.
ensureSemantics
();
final
SemanticsHandle
handle
=
tester
.
ensureSemantics
();
...
...
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