mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Tweaking comment on search screen (#577)
This commit is contained in:
@@ -65,7 +65,9 @@ class _SearchScreenState extends State<SearchScreen> {
|
|||||||
itemBuilder: (context, i) {
|
itemBuilder: (context, i) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
return Visibility(
|
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(),
|
child: _createSearchBox(),
|
||||||
visible: false,
|
visible: false,
|
||||||
maintainSize: true,
|
maintainSize: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user