@@ -143,7 +143,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
children: <Widget>[
|
||||
new ListItem(
|
||||
title: new Text('Scrollable dropdown:'),
|
||||
trailing: new DropDownButton<String>(
|
||||
trailing: new DropdownButton<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 DropDownMenuItem<String>(
|
||||
return new DropdownMenuItem<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 DropDownButton<String>(
|
||||
trailing: new DropdownButton<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 DropDownMenuItem<String>(
|
||||
return new DropdownMenuItem<String>(
|
||||
value: value,
|
||||
child: new Text(value));
|
||||
})
|
||||
|
||||
@@ -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 DropDownButtonHideUnderline(
|
||||
child: new DropdownButtonHideUnderline(
|
||||
child: new Container(
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border.all(
|
||||
color: const Color(0xFFD9D9D9)
|
||||
)
|
||||
),
|
||||
child: new DropDownButton<int>(
|
||||
child: new DropdownButton<int>(
|
||||
items: <int>[0, 1, 2, 3, 4, 5].map((int value) {
|
||||
return new DropDownMenuItem<int>(
|
||||
return new DropdownMenuItem<int>(
|
||||
value: value,
|
||||
child: new Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
|
||||
@@ -56,7 +56,7 @@ new FlatButton(
|
||||
String dropdownValue;
|
||||
|
||||
// Drop down button with string values.
|
||||
new DropDownButton<String>(
|
||||
new DropdownButton<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 DropDownMenuItem<String>(
|
||||
return new DropdownMenuItem<String>(
|
||||
value: value,
|
||||
child: new Text(value));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user