mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Updated Veggieseasons to use CupertinoSearchTextField (#630)
This commit is contained in:
committed by
GitHub
parent
c8d7b3c104
commit
d16d35e0ac
@@ -8,7 +8,6 @@ import 'package:flutter/widgets.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:veggieseasons/data/app_state.dart';
|
||||
import 'package:veggieseasons/data/veggie.dart';
|
||||
import 'package:veggieseasons/widgets/search_bar.dart';
|
||||
import 'package:veggieseasons/widgets/veggie_headline.dart';
|
||||
|
||||
class SearchScreen extends StatefulWidget {
|
||||
@@ -49,7 +48,7 @@ class _SearchScreenState extends State<SearchScreen> with RestorationMixin {
|
||||
Widget _createSearchBox() {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: SearchBar(
|
||||
child: CupertinoSearchTextField(
|
||||
controller: controller.value,
|
||||
focusNode: focusNode,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user