This commit is contained in:
unknown 2018-06-15 06:46:04 -07:00
parent facfd64839
commit 655ae36a89
1 changed files with 25 additions and 20 deletions

View File

@ -36,13 +36,13 @@ class _EntityDropdownState extends State<EntityDropdown> {
_headerRow() {
return Row(
children: <Widget>[
SizedBox(
width: 10.0,
),
Icon(
Padding(
padding: const EdgeInsets.only(left: 10.0, right: 10.0),
child: Icon(
Icons.search,
color: Colors.grey,
),
),
Expanded(
child: TextField(
autofocus: true,
@ -76,14 +76,16 @@ class _EntityDropdownState extends State<EntityDropdown> {
builder: (BuildContext context) {
return Padding(
padding: const EdgeInsets.all(16.0),
child: Material(
child: Column(
children: <Widget>[
Material(
child:
Column(mainAxisSize: MainAxisSize.min, children: <Widget>[
_headerRow(),
Column(
mainAxisSize: MainAxisSize.min,
children: entityList
.getRange(0, 7)
.getRange(0, 6)
.map((entityId) => ListTile(
title:
Text(entityMap[entityId].id.toString()),
@ -91,6 +93,9 @@ class _EntityDropdownState extends State<EntityDropdown> {
.toList()),
]),
),
Expanded(child: Container()),
],
),
);
});
}