Skip to main content

app_inspect_http 0.2.2 copy "app_inspect_http: ^0.2.2" to clipboard
app_inspect_http: ^0.2.2 copied to clipboard

Captures package:http requests for the AppInspect in-app network inspector.

example/main.dart

import 'package:app_inspect/app_inspect.dart';
import 'package:app_inspect_http/app_inspect_http.dart';
import 'package:flutter/material.dart';

final AppInspectHttpClient client = AppInspectHttpClient(); // or AppInspectHttpClient(yourClient)

void main() => runApp(AppInspect.wrap(const MyApp()));

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorObservers: [AppInspect.navigatorObserver],
      home: Scaffold(
        body: Center(
          // Send a request, then tap the AppInspect bubble to see it.
          child: FilledButton(
            onPressed: () => client.get(Uri.parse('https://dummyjson.com/products/1')),
            child: const Text('Send a request'),
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
148
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Captures package:http requests for the AppInspect in-app network inspector.

Repository (GitHub)
View/report issues

Topics

#http #network #debugging

License

MIT (license)

Dependencies

app_inspect, flutter, http

More

Packages that depend on app_inspect_http