mirror of
https://github.com/flutter/samples.git
synced 2025-11-13 19:08:41 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -313,8 +313,10 @@ void main() {
|
||||
await unsplashClient.searchPhotos(query: 'red');
|
||||
fail('UnsplashException should have been thrown');
|
||||
} on UnsplashException catch (e) {
|
||||
expect(e.toString(),
|
||||
'UnsplashException: OAuth error: The access token is invalid');
|
||||
expect(
|
||||
e.toString(),
|
||||
'UnsplashException: OAuth error: The access token is invalid',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -67,12 +67,13 @@ class FakeUnsplash implements Unsplash {
|
||||
''';
|
||||
|
||||
@override
|
||||
Future<SearchPhotosResponse?> searchPhotos(
|
||||
{String? query,
|
||||
num page = 1,
|
||||
num perPage = 10,
|
||||
List<num> collections = const [],
|
||||
SearchPhotosOrientation? orientation}) async {
|
||||
Future<SearchPhotosResponse?> searchPhotos({
|
||||
String? query,
|
||||
num page = 1,
|
||||
num perPage = 10,
|
||||
List<num> collections = const [],
|
||||
SearchPhotosOrientation? orientation,
|
||||
}) async {
|
||||
return SearchPhotosResponse.fromJson(searchPhotosResponse);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user