mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Fixing desktop_photo_search (#583)
This commit is contained in:
@@ -93,7 +93,10 @@ class PhotoSearchModelTester extends StatelessWidget {
|
||||
home: FlatButton(
|
||||
key: fabKey,
|
||||
onPressed: () async {
|
||||
await Provider.of<PhotoSearchModel>(context).addSearch(query);
|
||||
await Provider.of<PhotoSearchModel>(
|
||||
context,
|
||||
listen: false,
|
||||
).addSearch(query);
|
||||
},
|
||||
child: const Text('Search for a Photo'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user