Reports
This commit is contained in:
parent
0501695c7d
commit
c84a48eddc
|
|
@ -117,7 +117,8 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
suggestionsBoxDecoration: SuggestionsBoxDecoration(
|
||||
constraints: BoxConstraints(
|
||||
minWidth: 300,
|
||||
)),
|
||||
),
|
||||
),
|
||||
suggestionsCallback: (filter) {
|
||||
return (widget.entityList ?? widget.entityMap.keys.toList())
|
||||
.where((entityId) =>
|
||||
|
|
@ -165,8 +166,8 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
: SizedBox(),
|
||||
),
|
||||
),
|
||||
autoFlipDirection: true,
|
||||
//direction: AxisDirection.up,
|
||||
autoFlipDirection: true,
|
||||
animationStart: 1,
|
||||
debounceDuration: Duration(seconds: 0),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -261,6 +261,12 @@ class ReportResult {
|
|||
return DataRow(cells: [
|
||||
for (String column in columns)
|
||||
DataCell(TypeAheadFormField(
|
||||
noItemsFoundBuilder: (context) => SizedBox(),
|
||||
suggestionsBoxDecoration: SuggestionsBoxDecoration(
|
||||
constraints: BoxConstraints(
|
||||
minWidth: 300,
|
||||
),
|
||||
),
|
||||
suggestionsCallback: (filter) {
|
||||
filter = filter.toLowerCase();
|
||||
final index = columns.indexOf(column);
|
||||
|
|
@ -281,7 +287,17 @@ class ReportResult {
|
|||
},
|
||||
textFieldConfiguration: TextFieldConfiguration<String>(
|
||||
controller: textEditingControllers[column],
|
||||
decoration: InputDecoration(
|
||||
suffix: IconButton(
|
||||
icon: Icon(Icons.clear),
|
||||
onPressed: () {
|
||||
//
|
||||
},
|
||||
)),
|
||||
),
|
||||
autoFlipDirection: true,
|
||||
animationStart: 1,
|
||||
debounceDuration: Duration(seconds: 0),
|
||||
))
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue