From d4781143b93390002cba20e7c0eef3a988d31247 Mon Sep 17 00:00:00 2001 From: Dhafin Rayhan Date: Wed, 8 Nov 2023 20:05:19 +0700 Subject: [PATCH] Setup dio --- analysis_options.yaml | 1 - android/app/src/main/AndroidManifest.xml | 1 + lib/main.dart | 12 ++++++++++++ pubspec.lock | 8 ++++++++ pubspec.yaml | 1 + 5 files changed, 22 insertions(+), 1 deletion(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index d6386b8..805fb20 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -5,7 +5,6 @@ analyzer: invalid_annotation_target: ignore language: strict-casts: true - strict-inference: true strict-raw-types: true plugins: - custom_lint diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index b1ae8a2..58b6a9f 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ + true; + } +} diff --git a/pubspec.lock b/pubspec.lock index b29c3dd..e91c713 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -241,6 +241,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.3" + dio: + dependency: "direct main" + description: + name: dio + sha256: "417e2a6f9d83ab396ec38ff4ea5da6c254da71e4db765ad737a42af6930140b7" + url: "https://pub.dev" + source: hosted + version: "5.3.3" fake_async: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 4331bf8..0d09a1a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,6 +7,7 @@ environment: sdk: '>=3.1.5 <4.0.0' dependencies: + dio: ^5.3.3 flutter: sdk: flutter flutter_hooks: ^0.20.3