Skip to main content

flocon_dio 2.0.0 copy "flocon_dio: ^2.0.0" to clipboard
flocon_dio: ^2.0.0 copied to clipboard

Dio interceptor that sends your HTTP calls to the Flocon desktop debugger.

example/main.dart

import 'package:dio/dio.dart';
import 'package:flocon/flocon.dart';
import 'package:flocon_dio/flocon_dio.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (kDebugMode) {
    // the network options apply to every client
    await startFlocon((flocon) => flocon
      ..install(FloconNetwork(isImage: (request, _) => request.url.host == 'picsum.photos')));
  }
  // withFlocon() adds the Flocon interceptor: call it after adding your own interceptors.
  final dio = Dio().withFlocon();
  await dio.get<Object?>('https://httpbin.org/get');
}
0
likes
160
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dio interceptor that sends your HTTP calls to the Flocon desktop debugger.

Repository (GitHub)
View/report issues

Topics

#debugging #devtools #network #dio #flocon

License

MIT (license)

Dependencies

dio, flocon, flutter, uuid

More

Packages that depend on flocon_dio