mirror of
https://github.com/flutter/samples.git
synced 2026-05-04 05:46:39 +00:00
Adding no-result display to search screen. (#57)
This commit is contained in:
@@ -29,9 +29,11 @@ class SearchBar extends StatelessWidget {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
CupertinoIcons.search,
|
||||
color: Styles.searchIconColor,
|
||||
ExcludeSemantics(
|
||||
child: Icon(
|
||||
CupertinoIcons.search,
|
||||
color: Styles.searchIconColor,
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: CupertinoTextField(
|
||||
@@ -47,6 +49,7 @@ class SearchBar extends StatelessWidget {
|
||||
},
|
||||
child: Icon(
|
||||
CupertinoIcons.clear_thick_circled,
|
||||
semanticLabel: 'Clear search terms',
|
||||
color: Styles.searchIconColor,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user