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
87fb075f
Commit
87fb075f
authored
Sep 16, 2016
by
Dragoș Tiselice
Committed by
GitHub
Sep 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed DropDown to Dropdown. (#5897)
Fixes #3208.
parent
8ac14f86
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
77 deletions
+77
-77
buttons_demo.dart
examples/flutter_gallery/lib/demo/buttons_demo.dart
+4
-4
shrine_order.dart
examples/flutter_gallery/lib/demo/shrine/shrine_order.dart
+3
-3
example_code.dart
examples/flutter_gallery/lib/gallery/example_code.dart
+2
-2
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+3
-3
drop_down.dart
packages/flutter/lib/src/material/drop_down.dart
+56
-56
flat_button.dart
packages/flutter/lib/src/material/flat_button.dart
+1
-1
paginated_data_table.dart
packages/flutter/lib/src/material/paginated_data_table.dart
+4
-4
raised_button.dart
packages/flutter/lib/src/material/raised_button.dart
+1
-1
drop_down_test.dart
packages/flutter/test/material/drop_down_test.dart
+3
-3
No files found.
examples/flutter_gallery/lib/demo/buttons_demo.dart
View file @
87fb075f
...
...
@@ -143,7 +143,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
children:
<
Widget
>[
new
ListItem
(
title:
new
Text
(
'Scrollable dropdown:'
),
trailing:
new
Drop
D
ownButton
<
String
>(
trailing:
new
Drop
d
ownButton
<
String
>(
value:
dropdown1Value
,
onChanged:
(
String
newValue
)
{
setState
(()
{
...
...
@@ -156,7 +156,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
'Bit'
,
'More'
,
'Five'
,
'Six'
,
'Seven'
,
'Eight'
,
'Nine'
,
'Ten'
]
.
map
((
String
value
)
{
return
new
Drop
D
ownMenuItem
<
String
>(
return
new
Drop
d
ownMenuItem
<
String
>(
value:
value
,
child:
new
Text
(
value
));
})
...
...
@@ -168,7 +168,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
),
new
ListItem
(
title:
new
Text
(
'Simple dropdown:'
),
trailing:
new
Drop
D
ownButton
<
String
>(
trailing:
new
Drop
d
ownButton
<
String
>(
value:
dropdown2Value
,
onChanged:
(
String
newValue
)
{
setState
(()
{
...
...
@@ -178,7 +178,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
},
items:
<
String
>[
'One'
,
'Two'
,
'Free'
,
'Four'
]
.
map
((
String
value
)
{
return
new
Drop
D
ownMenuItem
<
String
>(
return
new
Drop
d
ownMenuItem
<
String
>(
value:
value
,
child:
new
Text
(
value
));
})
...
...
examples/flutter_gallery/lib/demo/shrine/shrine_order.dart
View file @
87fb075f
...
...
@@ -73,16 +73,16 @@ class OrderItem extends StatelessWidget {
new
SizedBox
(
height:
16.0
),
new
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
8.0
,
bottom:
8.0
,
right:
88.0
),
child:
new
Drop
D
ownButtonHideUnderline
(
child:
new
Drop
d
ownButtonHideUnderline
(
child:
new
Container
(
decoration:
new
BoxDecoration
(
border:
new
Border
.
all
(
color:
const
Color
(
0xFFD9D9D9
)
)
),
child:
new
Drop
D
ownButton
<
int
>(
child:
new
Drop
d
ownButton
<
int
>(
items:
<
int
>[
0
,
1
,
2
,
3
,
4
,
5
].
map
((
int
value
)
{
return
new
Drop
D
ownMenuItem
<
int
>(
return
new
Drop
d
ownMenuItem
<
int
>(
value:
value
,
child:
new
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8.0
),
...
...
examples/flutter_gallery/lib/gallery/example_code.dart
View file @
87fb075f
...
...
@@ -56,7 +56,7 @@ new FlatButton(
String
dropdownValue
;
// Drop down button with string values.
new
Drop
D
ownButton
<
String
>(
new
Drop
d
ownButton
<
String
>(
value:
dropdownValue
,
onChanged:
(
String
newValue
)
{
// null indicates the user didn't select a
...
...
@@ -68,7 +68,7 @@ new DropDownButton<String>(
},
items:
<
String
>[
'One'
,
'Two'
,
'Free'
,
'Four'
]
.
map
((
String
value
)
{
return
new
Drop
D
ownMenuItem
<
String
>(
return
new
Drop
d
ownMenuItem
<
String
>(
value:
value
,
child:
new
Text
(
value
));
})
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
87fb075f
...
...
@@ -153,7 +153,7 @@ class DataCell {
/// Creates an object to hold the data for a cell in a [DataTable].
///
/// The first argument is the widget to show for the cell, typically
/// a [Text] or [Drop
D
ownButton] widget; this becomes the [widget]
/// a [Text] or [Drop
d
ownButton] widget; this becomes the [widget]
/// property and must not be null.
///
/// If the cell has no data, then a [Text] widget with placeholder
...
...
@@ -170,7 +170,7 @@ class DataCell {
/// The data for the row.
///
/// Typically a [Text] widget or a [Drop
D
ownButton] widget.
/// Typically a [Text] widget or a [Drop
d
ownButton] widget.
///
/// If the cell has no data, then a [Text] widget with placeholder
/// text should be provided instead, and [placeholder] should be set
...
...
@@ -470,7 +470,7 @@ class DataTable extends StatelessWidget {
data:
new
IconThemeData
(
color:
isLightTheme
?
Colors
.
black54
:
Colors
.
white70
),
child:
new
Drop
D
ownButtonHideUnderline
(
child:
label
)
child:
new
Drop
d
ownButtonHideUnderline
(
child:
label
)
)
)
);
...
...
packages/flutter/lib/src/material/drop_down.dart
View file @
87fb075f
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/material/flat_button.dart
View file @
87fb075f
...
...
@@ -32,7 +32,7 @@ import 'theme.dart';
/// See also:
///
/// * [RaisedButton]
/// * [Drop
D
ownButton]
/// * [Drop
d
ownButton]
/// * <https://www.google.com/design/spec/components/buttons.html>
class
FlatButton
extends
StatelessWidget
{
/// Creates a flat button.
...
...
packages/flutter/lib/src/material/paginated_data_table.dart
View file @
87fb075f
...
...
@@ -307,8 +307,8 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
if
(
config
.
onRowsPerPageChanged
!=
null
)
{
List
<
Widget
>
availableRowsPerPage
=
config
.
availableRowsPerPage
.
where
((
int
value
)
=>
value
<=
_rowCount
)
.
map
/*<Drop
D
ownMenuItem<int>>*/
((
int
value
)
{
return
new
Drop
D
ownMenuItem
<
int
>(
.
map
/*<Drop
d
ownMenuItem<int>>*/
((
int
value
)
{
return
new
Drop
d
ownMenuItem
<
int
>(
value:
value
,
child:
new
Text
(
'
$value
'
)
);
...
...
@@ -316,8 +316,8 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
.
toList
();
footerWidgets
.
addAll
(<
Widget
>[
new
Text
(
'Rows per page:'
),
new
Drop
D
ownButtonHideUnderline
(
child:
new
Drop
D
ownButton
<
int
>(
new
Drop
d
ownButtonHideUnderline
(
child:
new
Drop
d
ownButton
<
int
>(
items:
availableRowsPerPage
,
value:
config
.
rowsPerPage
,
onChanged:
config
.
onRowsPerPageChanged
,
...
...
packages/flutter/lib/src/material/raised_button.dart
View file @
87fb075f
...
...
@@ -29,7 +29,7 @@ import 'theme.dart';
/// See also:
///
/// * [FlatButton]
/// * [Drop
D
ownButton]
/// * [Drop
d
ownButton]
/// * [FloatingActionButton]
/// * <https://www.google.com/design/spec/components/buttons.html>
class
RaisedButton
extends
StatelessWidget
{
...
...
packages/flutter/test/material/drop_down_test.dart
View file @
87fb075f
...
...
@@ -8,15 +8,15 @@ import 'package:flutter/material.dart';
void
main
(
)
{
testWidgets
(
'Drop down screen edges'
,
(
WidgetTester
tester
)
async
{
int
value
=
4
;
List
<
Drop
DownMenuItem
<
int
>>
items
=
<
DropD
ownMenuItem
<
int
>>[];
List
<
Drop
downMenuItem
<
int
>>
items
=
<
Dropd
ownMenuItem
<
int
>>[];
for
(
int
i
=
0
;
i
<
20
;
++
i
)
items
.
add
(
new
Drop
D
ownMenuItem
<
int
>(
value:
i
,
child:
new
Text
(
'
$i
'
)));
items
.
add
(
new
Drop
d
ownMenuItem
<
int
>(
value:
i
,
child:
new
Text
(
'
$i
'
)));
void
handleChanged
(
int
newValue
)
{
value
=
newValue
;
}
Drop
DownButton
<
int
>
button
=
new
DropD
ownButton
<
int
>(
Drop
downButton
<
int
>
button
=
new
Dropd
ownButton
<
int
>(
value:
value
,
onChanged:
handleChanged
,
items:
items
...
...
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