1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Tweaking comment on search screen (#577)

This commit is contained in:
Andrew Brogdon
2020-10-30 13:41:35 -07:00
committed by GitHub
parent 134b64bcad
commit d30bfd59ec

View File

@@ -65,7 +65,9 @@ class _SearchScreenState extends State<SearchScreen> {
itemBuilder: (context, i) {
if (i == 0) {
return Visibility(
//an invisible search box at the starting of the list so that overlay search box doesn't cover content
// This invisible and otherwise unnecessary search box is used to
// pad the list entries downward, so none will be underneath the
// real search box when the list is at its top scroll position.
child: _createSearchBox(),
visible: false,
maintainSize: true,