diff --git a/pkgs/.DS_Store b/pkgs/.DS_Store new file mode 100644 index 0000000000..db543149ae Binary files /dev/null and b/pkgs/.DS_Store differ diff --git a/pkgs/flutter_http_example/lib/http_client_factory.dart b/pkgs/flutter_http_example/lib/http_client_factory.dart index 55a1a4e024..c712b6e269 100644 --- a/pkgs/flutter_http_example/lib/http_client_factory.dart +++ b/pkgs/flutter_http_example/lib/http_client_factory.dart @@ -7,7 +7,7 @@ import 'dart:io'; import 'package:cupertino_http/cupertino_http.dart'; import 'package:http/http.dart'; -Client http_client() { +Client httpClient() { if (Platform.isIOS || Platform.isMacOS) { return CupertinoClient.defaultSessionConfiguration(); } diff --git a/pkgs/flutter_http_example/lib/http_client_factory_web.dart b/pkgs/flutter_http_example/lib/http_client_factory_web.dart index d4788156f6..1f3b580a55 100644 --- a/pkgs/flutter_http_example/lib/http_client_factory_web.dart +++ b/pkgs/flutter_http_example/lib/http_client_factory_web.dart @@ -5,4 +5,4 @@ import 'package:http/http.dart'; import 'package:fetch_client/fetch_client.dart'; -Client http_client() => FetchClient(mode: RequestMode.cors); +Client httpClient() => FetchClient(mode: RequestMode.cors); diff --git a/pkgs/flutter_http_example/lib/main.dart b/pkgs/flutter_http_example/lib/main.dart index bb3583ac3a..e2d2a4441a 100644 --- a/pkgs/flutter_http_example/lib/main.dart +++ b/pkgs/flutter_http_example/lib/main.dart @@ -13,7 +13,7 @@ import 'http_client_factory.dart' if (dart.library.html) 'http_client_factory_web.dart'; void main() { - runWithClient(() => runApp(const BookSearchApp()), http_client); + runWithClient(() => runApp(const BookSearchApp()), httpClient); } class BookSearchApp extends StatelessWidget { diff --git a/pkgs/flutter_http_example/test/widget_test.dart b/pkgs/flutter_http_example/test/widget_test.dart index 8fe7928734..0322ce56fa 100644 --- a/pkgs/flutter_http_example/test/widget_test.dart +++ b/pkgs/flutter_http_example/test/widget_test.dart @@ -1,10 +1,9 @@ -// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'package:flutter_test/flutter_test.dart'; - import 'package:flutter_http_example/main.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Test initial load', (WidgetTester tester) async {