From 1eedd0605c480c35fe9c584f848bdeb9c2701182 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Thu, 2 Nov 2023 08:14:19 -0700 Subject: [PATCH] More fixes --- pkgs/.DS_Store | Bin 0 -> 6148 bytes .../lib/http_client_factory.dart | 2 +- .../lib/http_client_factory_web.dart | 2 +- pkgs/flutter_http_example/lib/main.dart | 2 +- pkgs/flutter_http_example/test/widget_test.dart | 5 ++--- 5 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 pkgs/.DS_Store diff --git a/pkgs/.DS_Store b/pkgs/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..db543149aef0428fa23a94d8ff9ff7e882780dad GIT binary patch literal 6148 zcmeHKJ5Iw;5S)b+k!Vs-P`)d011m~SkOKe`28s|+lpso1oQtC|`w_yjkkZhgS!v(w zTkpIlPvP|fu;uao8dw0B(;e~Q%hde2`^3&FV?;X7IH1QKH+W)nnmP9p57^>J&QJaU zuRN*8JMQqzc#HmRv)^rBc8_`AX&0zU3P=GdAO)m=6c{Psy_Yt>NYp9?q<|FoR=~dx zjqcbL4vF#U;1VMMamI8Q 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 {