Skip to content

Commit 758d46c

Browse files
Updated Veggieseasons to use CupertinoSearchTextField
1 parent 6e9824d commit 758d46c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

experimental/veggieseasons/lib/widgets/search_bar.dart

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,13 @@ class SearchBar extends StatelessWidget {
3636
),
3737
child: Row(
3838
children: [
39-
ExcludeSemantics(
40-
child: Icon(
41-
CupertinoIcons.search,
42-
color: Styles.searchIconColor,
43-
),
44-
),
39+
/// Updated custom search field to CupertinoSearchTextField
4540
Expanded(
46-
child: CupertinoTextField(
41+
child: CupertinoSearchTextField(
4742
controller: controller,
4843
focusNode: focusNode,
4944
decoration: null,
5045
style: Styles.searchText(themeData),
51-
cursorColor: Styles.searchCursorColor,
52-
),
53-
),
54-
GestureDetector(
55-
onTap: () {
56-
controller.clear();
57-
},
58-
child: Icon(
59-
CupertinoIcons.clear_thick_circled,
60-
semanticLabel: 'Clear search terms',
61-
color: Styles.searchIconColor,
6246
),
6347
),
6448
],

0 commit comments

Comments
 (0)