From 07bfa82349e58675e7ed811231c645c712562b54 Mon Sep 17 00:00:00 2001 From: SandroMaglione Date: Mon, 25 Mar 2024 16:45:35 +0900 Subject: [PATCH] update examples (again) --- examples/fpdart_http/lib/main.dart | 2 +- examples/poke_api/lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fpdart_http/lib/main.dart b/examples/fpdart_http/lib/main.dart index 844bdd8..5f6bcf2 100644 --- a/examples/fpdart_http/lib/main.dart +++ b/examples/fpdart_http/lib/main.dart @@ -4,7 +4,7 @@ import 'package:http/http.dart' as http; import 'api.dart'; void main() async { - final main = await get( + await get( Uri.https("pokeapi.co", "/api/v2/pokemon/10"), ) .tap( diff --git a/examples/poke_api/lib/main.dart b/examples/poke_api/lib/main.dart index 55e4f2c..cd31499 100644 --- a/examples/poke_api/lib/main.dart +++ b/examples/poke_api/lib/main.dart @@ -72,7 +72,7 @@ void main() async { () => print("No pokemon: $error"), ), ) - .runFutureExit((Http(), JsonCodec())); + .provide((Http(), JsonCodec())).runFutureExit(); print(exit); }