custom_dio_fix 1.0.0 copy "custom_dio_fix: ^1.0.0" to clipboard
custom_dio_fix: ^1.0.0 copied to clipboard

基于custom_dio适配新版 Flutter 的网络请求插件

example/lib/main.dart

import 'package:custom_dio_fix/custom_dio.dart';
import 'package:custom_dio_fix_example/test_page.dart';
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  CustomDio.setInitData(
    CustomDioOptions(
      baseUrl: "http://www.exmaple.com/api/v1/",
      headers: {"authorization": "Bearer xxx"},
    ),
  );
  runApp(const MaterialApp(
    home: TestPage(),
    debugShowCheckedModeBanner: false,
  ));
}
1
likes
120
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

基于custom_dio适配新版 Flutter 的网络请求插件

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, flutter_pretty_dio_logger, path

More

Packages that depend on custom_dio_fix