base_api 1.1.3 base_api: ^1.1.3 copied to clipboard
网络请求库
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add base_api
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
base_api: ^1.1.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:base_api/api.dart';
import 'package:base_api/api/base_api.dart';
import 'package:base_api/api/base_download_api.dart';
import 'package:base_api/api/base_upload_api.dart';
import 'package:base_api/base_model/base_model.dart';
import 'package:base_api/dio/dio_manager.dart';
import 'package:base_api/handles.dart';
import 'package:base_api/refresh_api/base_refresh_api.dart';
import 'package:base_api/refresh_api/base_refresh_controller.dart';
import 'package:base_api/refresh_api/base_refresh_view.dart';